mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Rename XSendFile commands
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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');
|
||||
}
|
@@ -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("");
|
||||
|
Reference in New Issue
Block a user