Rename XSendFile commands

This commit is contained in:
Romain Neutron
2013-07-09 17:55:11 +02:00
parent 9f29285901
commit 3648a0f52a
3 changed files with 6 additions and 6 deletions

View File

@@ -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) {

View File

@@ -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');
}

View File

@@ -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(" <info>OK</info>");
$output->writeln("");
$output->write("It now strongly recommended to use <info>xsendfile:configuration-dumper</info> command to upgrade your virtual-host");
$output->write("It is now strongly recommended to use <info>xsendfile:dump-configuration</info> command to upgrade your virtual-host");
} else {
$output->writeln("Configuration will <info>not</info> be written, use <info>--write</info> option to write it");
$output->writeln("");