mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-18 17:21:26 +08:00
Use class constants for Event declatration in ActionFiler
This commit is contained in:
@ -30,8 +30,8 @@ class ActionFilter extends Behavior
|
||||
public function events()
|
||||
{
|
||||
return array(
|
||||
'beforeAction' => 'beforeFilter',
|
||||
'afterAction' => 'afterFilter',
|
||||
Controller::EVENT_BEFORE_ACTION => 'beforeFilter',
|
||||
Controller::EVENT_AFTER_ACTION => 'afterFilter',
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user