Fix #17396: Added 'invoked by controller' to the debug log message when \yii\base\Action is used

This commit is contained in:
Alexander Kartavenko
2019-06-28 01:50:44 +03:00
committed by Alexander Makarov
parent e6d7881bbe
commit b0a973a8da
2 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class Action extends Component
throw new InvalidConfigException(get_class($this) . ' must define a "run()" method.');
}
$args = $this->controller->bindActionParams($this, $params);
Yii::debug('Running action: ' . get_class($this) . '::run()', __METHOD__);
Yii::debug('Running action: ' . get_class($this) . '::run()' . ', invoked by ' . get_class($this->controller), __METHOD__);
if (Yii::$app->requestedParams === null) {
Yii::$app->requestedParams = $args;
}