Beispiel #1
0
 public function deactivate($plugin = null)
 {
     if (!$plugin) {
         throw new Error(__('Bad request'), 400);
     }
     $manager = new PluginManager();
     $manager->deactivate($plugin);
     // Plugin has been activated, confirm and redirect
     Url::redirect($this->feather->urlFor('adminPlugins'), array('warning', 'Plugin deactivated!'));
 }
Beispiel #2
0
 public static function loadPlugins()
 {
     $manager = new PluginManager();
     $manager->loadPlugins();
 }