mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +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
|
||||
$name = trim(substr($name, 3));
|
||||
$this->attachBehavior($name, $value instanceof Behavior ? $value : Yii::createObject($value));
|
||||
return;
|
||||
} else {
|
||||
// behavior property
|
||||
$this->ensureBehaviors();
|
||||
|
||||
Reference in New Issue
Block a user