_service = $service; } /** * Activate module and apply it migration if needed * @param $name */ public function actionActivate($name) { $module = ModuleRecord::find()->andWhere(['name' => $name])->one(); if ($module || $module->isDisabled()) { $this->_service->enable($module); } } }