response->format = Response::FORMAT_RAW; } return parent::afterAction($action, $result); } /** * @param \yii\base\Application $app */ public function bootstrap($app): void { $legacyHost = $app->params['authserverHost']; $app->getUrlManager()->addRules([ "//{$legacyHost}/authserver/auth/" => "{$this->id}/authentication/", ], false); } public static function info($message): void { Yii::info($message, 'legacy-authserver'); } public static function error($message): void { Yii::info($message, 'legacy-authserver'); } }