Move methods from Story provider to controller

This commit is contained in:
Benoît Burnichon
2015-06-01 11:41:00 +02:00
parent 2ee8fd3c34
commit d7b21c65cb
4 changed files with 246 additions and 214 deletions

View File

@@ -6,6 +6,8 @@
use Alchemy\Phrasea\CLI;
return call_user_func(function (CLI $cli) {
$app = $cli;
$app = $cli; if ($app['plugins.manager']->isEnabled('web-gallery-plugin')) {
$cli->command(Alchemy\WebGallery\Command\InstallCommand::create()); $cli->command(Alchemy\WebGallery\Command\UninstallCommand::create()); $cli->command(Alchemy\WebGallery\Command\UpdateCommand::create()); }
return $cli;
}, $cli);