public function update(array $collection)
    {
        $this->_auth = Yii::$app->authManager;
        $this->generateItems($collection);
        $this->manageItems();
        $this->manageRelations();
        if ($this->_auth instanceof \yii\rbac\DbManager) {
            $this->_auth->invalidateCache();
        }
    }
public function update(array $collection)
    {
        $this->_auth = Yii::$app->authManager;
        $this->generateItems($collection);
        $this->manageItems();
        $this->manageRelations();
        if ($this->_auth instanceof \yii\rbac\DbManager) {
            $this->_auth->invalidateCache();
        }
    }
public function update ( array $ collection ) { $ this -> _auth = Yii :: $ app -> authManager ; $ this -> generateItems ( $ collection ) ; $ this -> manageItems ( ) ; $ this -> manageRelations ( ) ; if ( $ this -> _auth instanceof \ yii \ rbac \ DbManager ) { $ this -> _auth -> invalidateCache ( ) ; } }
Updates RBAC configuration using current RBAC manager component.

@param array $collection
@return bool
@throws InvalidConfigException
Updates RBAC configuration using current RBAC manager component .