Commit f9648fed by Qiang Xue

Fixed action beforeRun/afterRun calls.

parent 80d3afa0
...@@ -84,7 +84,10 @@ class Action extends Component ...@@ -84,7 +84,10 @@ class Action extends Component
if (Yii::$app->requestedParams === null) { if (Yii::$app->requestedParams === null) {
Yii::$app->requestedParams = $args; Yii::$app->requestedParams = $args;
} }
return call_user_func_array([$this, 'run'], $args); if ($this->beforeRun()) {
call_user_func_array([$this, 'run'], $args);
$this->afterRun();
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment