mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 05:45:33 +08:00
Changed Controller::afterAction(), Module::afterAction() and ActionFilter::afterAction() to pass $result by value instead of reference
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user