mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	Fix #17396: Added 'invoked by controller' to the debug log message when \yii\base\Action is used
				
					
				
			This commit is contained in:
		
				
					committed by
					
						
						Alexander Makarov
					
				
			
			
				
	
			
			
			
						parent
						
							e6d7881bbe
						
					
				
				
					commit
					b0a973a8da
				
			@ -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
 | 
				
			||||||
 | 
				
			|||||||
@ -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;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user