activatePlugin() public method

주어진 플러그인을 활성화한다. 활성화된 플러그인 목록은 XE에 저장된다.
public activatePlugin ( string $pluginId ) : void
$pluginId string 활성화 할 플러그인의 id
return void
 /**
  * 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' => '플러그인을 켰습니다.']);
 }