U4EA  
            
           
           
          
              
                February 29, 2016, 11:25pm
               
               
          1 
           
         
        
          Hi folks,
I have added this to my backend config: -
    'components' => [
        'user' => [
            'class' => 'backend\components\user\User',
            'identityClass' => 'backend\models\user\User',
            'enableAutoLogin' => TRUE,
        ],
	
 
And I am getting the following error: -
[i]Invalid Configuration – yii\base\InvalidConfigException
"user" refers to a backend\components\user\User component. yii\web\User is expected[/i]
The namespace in the class is correct: -
namespace backend\components\user;
 
Any thoughts?
         
         
           
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            phtamas  
            (Phtamas)
           
           
          
              
                February 29, 2016, 11:38pm
               
               
          2 
           
         
        
          Does backend\components\user\User extend yii\web\User? Do you use any user management extension?
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            jacmoe  
            (Jacob Moena)
           
           
          
              
                February 29, 2016, 11:39pm
               
               
          3 
           
         
        
          Read the error message more carefully 
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            U4EA  
            
           
           
          
              
                February 29, 2016, 11:43pm
               
               
          4 
           
         
        
          Yeah, I wasn’t extending from \yii\web\User  
Thanks guys. I’ve been coding all day, just did my last VCS commit after I had that issue thinking “I’ll bet this is something really obvious that I will notice when I start work on this again tomorrow…”.
Thanks again!
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            jacmoe  
            (Jacob Moena)
           
           
          
              
                February 29, 2016, 11:47pm
               
               
          5 
           
         
        
          Now only the bed bugs will bite 
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            U4EA  
            
           
           
          
              
                February 29, 2016, 11:48pm
               
               
          6 
           
         
        
          And that’s exactly where I am headed!