mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Add Basic handling of plugins in admin
This commit is contained in:
@@ -30,6 +30,21 @@ class PluginsController
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $pluginName
|
||||
* @return Response
|
||||
*/
|
||||
public function showAction($pluginName)
|
||||
{
|
||||
if (!isset($this->app['plugins'][$pluginName])) {
|
||||
throw new \InvalidArgumentException('Expects a valid plugin name.');
|
||||
}
|
||||
|
||||
return $this->render('admin/plugins/show.html.twig', [
|
||||
'plugin' => $this->app['plugins'][$pluginName],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $view
|
||||
* @param array $parameters
|
||||
|
Reference in New Issue
Block a user