/** * activatePlugin * * @param $pluginId * * @return void */ protected function activatePlugin($pluginId) { $this->handler->getAllPlugins(true); if ($this->handler->isActivated($pluginId) === false) { $this->handler->activatePlugin($pluginId); } }
public function postActivatePlugin($pluginId, PluginHandler $handler) { try { $handler->activatePlugin($pluginId); } catch (XpressengineException $e) { throw new HttpException(Response::HTTP_FORBIDDEN, $e->getMessage(), $e); } catch (\Exception $e) { throw $e; } return Redirect::route('settings.plugins')->withAlert(['type' => 'success', 'message' => '플러그인을 켰습니다.']); }
public function putActivatePlugin($pluginId, PluginHandler $handler, InterceptionHandler $interceptionHandler) { try { $handler->activatePlugin($pluginId); $interceptionHandler->clearProxies(); } catch (XpressengineException $e) { throw new HttpException(Response::HTTP_FORBIDDEN, $e->getMessage(), $e); } catch (\Exception $e) { throw $e; } return Redirect::back()->withAlert(['type' => 'success', 'message' => '플러그인을 켰습니다.']); }