diff --git a/bin/console b/bin/console index b7ee8fbfaf..8b7ad8cb00 100755 --- a/bin/console +++ b/bin/console @@ -28,8 +28,8 @@ use Alchemy\Phrasea\CLI; use Alchemy\Phrasea\Command\Plugin\AddPlugin; use Alchemy\Phrasea\Command\Plugin\RemovePlugin; use Alchemy\Phrasea\Command\CheckConfig; -use Alchemy\Phrasea\Command\Setup\XSendFileMappingDumper; use Alchemy\Phrasea\Command\Setup\XSendFileMappingGenerator; +use Alchemy\Phrasea\Command\Setup\XSendFileConfigurationDumper; require_once __DIR__ . '/../lib/autoload.php'; @@ -98,7 +98,7 @@ try { $cli->command(new AddPlugin()); $cli->command(new RemovePlugin()); $cli->command(new Configuration()); - $cli->command(new XSendFileMappingDumper()); + $cli->command(new XSendFileConfigurationDumper()); $cli->command(new XSendFileMappingGenerator()); call_user_func(function ($cli) { diff --git a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingDumper.php b/lib/Alchemy/Phrasea/Command/Setup/XSendFileConfigurationDumper.php similarity index 93% rename from lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingDumper.php rename to lib/Alchemy/Phrasea/Command/Setup/XSendFileConfigurationDumper.php index a06b9203c0..b6a2fc5814 100644 --- a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingDumper.php +++ b/lib/Alchemy/Phrasea/Command/Setup/XSendFileConfigurationDumper.php @@ -16,10 +16,10 @@ use Alchemy\Phrasea\Exception\RuntimeException; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -class XSendFileMappingDumper extends Command +class XSendFileConfigurationDumper extends Command { public function __construct($name = null) { - parent::__construct('xsendfile:configuration-dumper'); + parent::__construct('xsendfile:dump-configuration'); $this->setDescription('Dump the virtual host configuration depending on Phraseanet configuration'); } diff --git a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php b/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php index c0592fe9eb..4a2d5f878d 100644 --- a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php +++ b/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php @@ -21,7 +21,7 @@ class XSendFileMappingGenerator extends Command { public function __construct($name = null) { - parent::__construct('xsendfile:configuration-generator'); + parent::__construct('xsendfile:generate-mapping'); $this->addOption('write', 'w', null, 'Writes the configuration') ->addOption('enabled', 'e', null, 'Set the enable toggle to `true`') @@ -53,7 +53,7 @@ class XSendFileMappingGenerator extends Command $this->container['phraseanet.configuration']['xsendfile'] = $conf; $output->writeln(" OK"); $output->writeln(""); - $output->write("It now strongly recommended to use xsendfile:configuration-dumper command to upgrade your virtual-host"); + $output->write("It is now strongly recommended to use xsendfile:dump-configuration command to upgrade your virtual-host"); } else { $output->writeln("Configuration will not be written, use --write option to write it"); $output->writeln("");