mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Using constants instead of literals in Behavior
This commit is contained in:
@ -46,8 +46,8 @@ class Behavior extends \yii\base\Object
|
||||
*
|
||||
* ~~~
|
||||
* [
|
||||
* 'beforeValidate' => 'myBeforeValidate',
|
||||
* 'afterValidate' => 'myAfterValidate',
|
||||
* Model::EVENT_BEFORE_VALIDATE => 'myBeforeValidate',
|
||||
* Model::EVENT_AFTER_VALIDATE => 'myAfterValidate',
|
||||
* ]
|
||||
* ~~~
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user