Skip to content

Commit

Permalink
Improve documentation for dump command (#426)
Browse files Browse the repository at this point in the history
* Improve documentation for dump command

* Fix whitespace
  • Loading branch information
sprain committed Dec 27, 2021
1 parent 22029de commit 4438dac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Command/DumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 4 additions & 2 deletions Resources/doc/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------------
Expand Down

0 comments on commit 4438dac

Please # to comment.