Beispiel #1
0
 public function uninstallAction()
 {
     $plugin = $this->pluginManager->getPlugin($this->params('id'));
     if (!$plugin) {
         return $this->notFoundAction();
     }
     $this->pluginManager->uninstall($plugin);
     return $this->redirect()->toRoute('admin/system/plugins');
 }
Beispiel #2
0
 public function fetchAll($params = array())
 {
     $adapter = new ArrayAdapter($this->pluginManager->getPlugins());
     return new PluginCollection($adapter);
 }