|  |  | @ -8,6 +8,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | namespace yii\base; |  |  |  | namespace yii\base; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | use Yii; |  |  |  | use Yii; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | use yii\helpers\base\VarDumper; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | /** |  |  |  | /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  * @include @yii/base/Component.md |  |  |  |  * @include @yii/base/Component.md | 
			
		
	
	
		
		
			
				
					|  |  | @ -90,6 +91,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(); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |