Using constants instead of literals in Behavior

This commit is contained in:
Paul Kofmann
2013-12-30 12:42:41 +01:00
parent 369b9c27d9
commit 6e34488fa5

View File

@ -46,8 +46,8 @@ class Behavior extends \yii\base\Object
*
* ~~~
* [
* 'beforeValidate' => 'myBeforeValidate',
* 'afterValidate' => 'myAfterValidate',
* Model::EVENT_BEFORE_VALIDATE => 'myBeforeValidate',
* Model::EVENT_AFTER_VALIDATE => 'myAfterValidate',
* ]
* ~~~
*