public function postDeactivatePlugin($pluginId, PluginHandler $handler) { try { $handler->deactivatePlugin($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 putDeactivatePlugin($pluginId, PluginHandler $handler, InterceptionHandler $interceptionHandler) { try { $handler->deactivatePlugin($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' => '플러그인을 껐습니다.']); }