public function postUpdatePlugin($pluginId, PluginHandler $handler) { try { $handler->updatePlugin($pluginId); } catch (XpressengineException $e) { throw new HttpException(Response::HTTP_FORBIDDEN, $e->getMessage(), $e); } catch (\Exception $e) { throw $e; } app('session.store')->flash('alert', ['type' => 'success', 'message' => '플러그인을 업데이트했습니다.']); return XePresenter::makeApi(['type' => 'success', 'message' => '플러그인을 업데이트했습니다.']); }
/** * activatePlugin * * @param $pluginId * * @return void */ protected function updatePlugin($pluginId) { $this->handler->getAllPlugins(true); $this->handler->updatePlugin($pluginId); }