mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 06:17:56 +08:00
Merge branch 'master' of https://github.com/yiisoft/yii2
This commit is contained in:
@@ -90,6 +90,7 @@ class Component extends Object
|
|||||||
// as behavior: attach behavior
|
// as behavior: attach behavior
|
||||||
$name = trim(substr($name, 3));
|
$name = trim(substr($name, 3));
|
||||||
$this->attachBehavior($name, $value instanceof Behavior ? $value : Yii::createObject($value));
|
$this->attachBehavior($name, $value instanceof Behavior ? $value : Yii::createObject($value));
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
// behavior property
|
// behavior property
|
||||||
$this->ensureBehaviors();
|
$this->ensureBehaviors();
|
||||||
|
|||||||
Reference in New Issue
Block a user