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!')); }
public static function loadPlugins() { $manager = new PluginManager(); $manager->loadPlugins(); }