Skip to content

Commit

Permalink
Assigning the request by reference in the component,
Browse files Browse the repository at this point in the history
It should always point to the same object
  • Loading branch information
lorenzo committed Apr 24, 2015
1 parent 9298bf0 commit 887d6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component.php
Expand Up @@ -110,7 +110,7 @@ public function __construct(ComponentRegistry $registry, array $config = [])
$this->_registry = $registry;
$controller = $registry->getController();
if ($controller) {
$this->request = $controller->request;
$this->request =& $controller->request;
}

$this->config($config);
Expand Down

0 comments on commit 887d6f4

Please sign in to comment.