Changed Controller::afterAction(), Module::afterAction() and ActionFilter::afterAction() to pass $result by value instead of reference

This commit is contained in:
Qiang Xue
2014-02-27 10:52:17 -05:00
parent 48926fa6f1
commit 49010df192
5 changed files with 21 additions and 15 deletions

View File

@@ -136,15 +136,12 @@ class PageCache extends ActionFilter
}
/**
* This method is invoked right after an action is executed.
* You may override this method to do some postprocessing for the action.
* @param Action $action the action just executed.
* @param mixed $result the action execution result
* @inheritdoc
*/
public function afterAction($action, &$result)
public function afterAction($action, $result)
{
echo $result;
$this->view->endCache();
$result = ob_get_clean();
return ob_get_clean();
}
}