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