Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documenation: update usage.rst #312

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lambertbeekhuis
Copy link

Add documentation on how to dump correct routes from the console command

Add documentation on how to dump correct routes from the console command
@tobias-93
Copy link
Collaborator

Please add a link to the mentioned Symfony article: https://symfony.com/doc/current/console/request_context.html.

@@ -37,6 +37,16 @@ instead of ``web``, to achieve this you can set the ``target`` parameter:
# Symfony Flex
bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json

When you dump the routes from a command, the Request Context (e.g. host and base_url) are not known. To generate correct routes for each environment with console commands, add the following (see `How to Generate URLs from the Console`):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to Generate URLs from the Console should be a link to the proper page of the Symfony doc.

@JohJohan
Copy link
Contributor

JohJohan commented Jul 2, 2024

@lambertbeekhuis any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants