protected getAuthManager ( ) : |
||
return |
protected function getAuthManager()
{
$authManager = Yii::$app->getAuthManager();
if (!$authManager instanceof DbManager) {
throw new InvalidConfigException('You should configure "authManager" component to use database before executing this migration.');
}
return $authManager;
}
/** * Override method to allow injection of used authManager from trait. * @return \yii\rbac\DbManager */ public function getAuthManager() { if ($this->authManager !== null) { return $this->authManager; } return parent::getAuthManager(); }