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

@ -7,6 +7,7 @@ Yii Framework 2 Change Log
- Enh #17382: Added `\yii\validators\DateValidator::$strictDateFormat` to enable strict validation (alexkart) - Enh #17382: Added `\yii\validators\DateValidator::$strictDateFormat` to enable strict validation (alexkart)
- Bug #16394: Fixed issues in `migrate/create` when specifying default values with colons and adding multiple columns (alexkart) - Bug #16394: Fixed issues in `migrate/create` when specifying default values with colons and adding multiple columns (alexkart)
- Bug #17341: Re-added fix for error from yii.activeForm.js in strict mode (mikehaertl) - Bug #17341: Re-added fix for error from yii.activeForm.js in strict mode (mikehaertl)
- Enh #17396: Added 'invoked by controller' to the debug log message when `\yii\base\Action` is used (alexkart)
2.0.21 June 18, 2019 2.0.21 June 18, 2019

View File

@ -86,7 +86,7 @@ class Action extends Component
throw new InvalidConfigException(get_class($this) . ' must define a "run()" method.'); throw new InvalidConfigException(get_class($this) . ' must define a "run()" method.');
} }
$args = $this->controller->bindActionParams($this, $params); $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) { if (Yii::$app->requestedParams === null) {
Yii::$app->requestedParams = $args; Yii::$app->requestedParams = $args;
} }