/** * Runs an action within this controller with the specified action ID and parameters. */ public function runAction($id, $params = []) { $params = \Yii::$app->request->get(); if (false === empty($params['id'])) { static::$configAlias = $params['id']; } $this->configName = empty(static::$configAlias) ?: static::$configAlias; $this->getConfig(); if (empty(static::$config)) { throw new NotFoundHttpException(\Yii::t('yii', 'Unknown daemon ID!')); } $this->reloadComponent(); return parent::runAction($id, $params); }