From 4438dac617d515d0298e9fc190ffe330ffae7c8a Mon Sep 17 00:00:00 2001 From: Manuel Reinhard Date: Mon, 27 Dec 2021 15:10:24 +0100 Subject: [PATCH] Improve documentation for dump command (#426) * Improve documentation for dump command * Fix whitespace --- Command/DumpCommand.php | 2 +- Resources/doc/commands.rst | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Command/DumpCommand.php b/Command/DumpCommand.php index 674d64b..f74291d 100644 --- a/Command/DumpCommand.php +++ b/Command/DumpCommand.php @@ -56,7 +56,7 @@ protected function configure(): void 'target', null, InputOption::VALUE_OPTIONAL, - 'Override the target directory to dump routes in.' + 'Override the target file to dump routes in.' ) ->addOption( 'locale', diff --git a/Resources/doc/commands.rst b/Resources/doc/commands.rst index 8ff196f..d26d8f9 100644 --- a/Resources/doc/commands.rst +++ b/Resources/doc/commands.rst @@ -43,8 +43,10 @@ Or inside assetic, do .. tip:: If you are using JMSI18nRoutingBundle, you need to run the command with the - ``--locale`` parameter once for each locale you use and adjust your include - paths accordingly. + ``--locale`` parameter and a custom ``--target`` once for each locale you use. + Then adjust your include path accordingly. Note that you can only load the dump + of one locale at once in your html as each following dump would overwrite the + data of the previous one. fos:js-routing:debug --------------------