baseDomain === null) { throw new InvalidConfigException('base domain must be specified'); } } /** * @param \yii\base\Application $app the application currently running */ public function bootstrap($app) { $app->getUrlManager()->addRules([ $this->baseDomain . '/' . $this->id . '/auth/' => $this->id . '/authentication/', ], false); } }