mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-19 01:34:44 +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()
|
public function events()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'beforeAction' => 'beforeFilter',
|
Controller::EVENT_BEFORE_ACTION => 'beforeFilter',
|
||||||
'afterAction' => 'afterFilter',
|
Controller::EVENT_AFTER_ACTION => 'afterFilter',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user