Skip to content

Commit

Permalink
Updated docblock and changed return type for Controller::constructCla…
Browse files Browse the repository at this point in the history
…sses()
  • Loading branch information
ADmad committed Apr 17, 2014
1 parent a1cdf96 commit 282c6e0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Controller/Controller.php
Expand Up @@ -449,18 +449,13 @@ public function implementedEvents() {
* and components have their callbacks attached to the EventManager.
* It is also at this time that Controller callbacks are bound.
*
* See Controller::repository(); for more information on how models are loaded.
*
* @return mixed true if models found and instance created.
* @see Controller::repository()
* @return void
* @link http://book.cakephp.org/2.0/en/controllers.html#Controller::constructClasses
* @throws MissingModelException
*/
public function constructClasses() {
$this->_mergeControllerVars();
$this->_loadComponents();
$this->getEventManager()->attach($this);
return true;
}

/**
Expand Down

0 comments on commit 282c6e0

Please sign in to comment.