framework/web/User.php
public function init()
    {
        parent::init();

        if ($this->identityClass === null) {
            throw new InvalidConfigException('User::identityClass must be set.');
        }
        if ($this->enableAutoLogin && !isset($this->identityCookie['name'])) {
            throw new InvalidConfigException('User::identityCookie must contain the "name" element.');
        }
        if (!empty($this->accessChecker) && is_string($this->accessChecker)) {
            $this->accessChecker = Yii::createObject($this->accessChecker);
        }
    }
public function init()
    {
        parent::init();

        if ($this->identityClass === null) {
            throw new InvalidConfigException('User::identityClass must be set.');
        }
        if ($this->enableAutoLogin && !isset($this->identityCookie['name'])) {
            throw new InvalidConfigException('User::identityCookie must contain the "name" element.');
        }
        if (!empty($this->accessChecker) && is_string($this->accessChecker)) {
            $this->accessChecker = Yii::createObject($this->accessChecker);
        }
    }
public function init ( ) { parent :: init ( ) ; if ( $ this -> identityClass === null ) { throw new InvalidConfigException ( 'User::identityClass must be set.' ) ; } if ( $ this -> enableAutoLogin && ! isset ( $ this -> identityCookie [ 'name' ] ) ) { throw new InvalidConfigException ( 'User::identityCookie must contain the "name" element.' ) ; } if ( ! empty ( $ this -> accessChecker ) && is_string ( $ this -> accessChecker ) ) { $ this -> accessChecker = Yii :: createObject ( $ this -> accessChecker ) ; } }
Initializes the application component.
Initializes the application component .