Esempio n. 1
0
 public function fetch($id)
 {
     $plugin = $this->pluginManager->getPlugin($id);
     if (!$plugin) {
         return null;
     }
     return $this->buildEntity($plugin);
 }
Esempio n. 2
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');
 }