Skip to content

Commit

Permalink
Fix PHPCS error and add doc block.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 6, 2014
1 parent 946bf55 commit 6595628
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Controller/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@
* controller logic that can be composed into a controller. Components also
* provide request life-cycle callbacks for injecting logic at specific points.
*
* ## Initialize hook
*
* Like Controller and Table, this class has an initialize() hook that you can use
* to add custom 'constructor' logic. It is important to remember that each request
* (and sub-request) will only make one instance of any given component.
*
* ## Life cycle callbacks
*
* Components can provide several callbacks that are fired at various stages of the request
* cycle. The available callbacks are:
*
* - `beforeFilter(Event $event)`
* Called before the controller's beforeFilter method by default.
* - `startup(Event $event)`
* Called after the controller's beforeFilter method, and before the
* controller action is called.
Expand Down Expand Up @@ -106,6 +114,7 @@ public function __construct(ComponentRegistry $registry, array $config = []) {
* Implement this method to avoid having to overwrite
* the constructor and call parent.
*
* @param array $config The configuration array this component is using.
* @return void
*/
public function initialize(array $config) {
Expand Down

0 comments on commit 6595628

Please sign in to comment.