Improve Xsendfile tools, allow dump whenever the conf is disabled

This commit is contained in:
Romain Neutron
2014-02-26 18:46:10 +01:00
parent 965a685236
commit 51b9a7f89a
3 changed files with 13 additions and 12 deletions

View File

@@ -56,13 +56,15 @@ class XSendFileMappingGenerator extends Command
$this->container['phraseanet.configuration']['xsendfile'] = $conf;
$output->writeln(" <info>OK</info>");
$output->writeln("");
$output->write("It is now strongly recommended to use <info>xsendfile:dump-configuration</info> command to upgrade your virtual-host");
$output->writeln("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("");
$output->writeln(Yaml::dump(array('xsendfile' => $conf), 4));
}
$output->writeln("");
return 0;
}