core/traits/RestBehaviorsTrait.php
private function getUserAuthClass()
    {
        if ($this instanceof UserBehaviorInterface) {
            $class = $this->userAuthClass();
            
            if (!$class) { // return false;
                return false;
            }
            
            if (!is_object($class)) {
                return Yii::createObject($class);
            }
    
            return $class;
        }
        
        return false;
    }
private function getUserAuthClass()
    {
        if ($this instanceof UserBehaviorInterface) {
            $class = $this->userAuthClass();
            
            if (!$class) { // return false;
                return false;
            }
            
            if (!is_object($class)) {
                return Yii::createObject($class);
            }
    
            return $class;
        }
        
        return false;
    }
private function getUserAuthClass ( ) { if ( $ this instanceof UserBehaviorInterface ) { $ class = $ this -> userAuthClass ( ) ; if ( ! $ class ) { // return false; return false ; } if ( ! is_object ( $ class ) ) { return Yii :: createObject ( $ class ) ; } return $ class ; } return false ; }
Whether the rest controller is protected or not.

@return boolean|\yii\web\User
Whether the rest controller is protected or not .