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

Inform to expose routes annotation before run dump #317

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

Conversation

ismail1432
Copy link

Maybe I'm wrong but Using Webpack Encore I was trying to use FOSJsRoutingBundle for the first time. After runned dump command I don't have any routes in fos_js_routes.json , I had to expose them in annotations and run again the command. So we can inform people and put a link to the expose route part

Maybe I'm wrong but Using Webpack Encore I was trying to use FOSJsRoutingBundle for the first time. After runned dump command I don't have any routes in fos_js_routes.json , I had to expose them in annotations and run again the command. So we can inform people and put a link to the expose route part
@@ -24,6 +24,10 @@ In applications not using webpack add these two lines in your layout:
If you are using webpack and Encore to package your assets you will need to use the dump command
and export your routes to json, this command will create a json file into the ``web/js`` folder:

.. note::

If you are using annotations for routing you have to expose your routes before running this command
Copy link
Member

Choose a reason for hiding this comment

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

this is not limited to annotations. Configuring which routes are exposed should always be done before dumping (as the dump will only include the exposed routes).

@@ -24,6 +24,10 @@ In applications not using webpack add these two lines in your layout:
If you are using webpack and Encore to package your assets you will need to use the dump command
and export your routes to json, this command will create a json file into the ``web/js`` folder:

.. note::
Copy link
Member

Choose a reason for hiding this comment

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

This note is in the wrong place, as the previous paragraph expects to be followed by the code block.

Copy link
Author

Choose a reason for hiding this comment

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

If I understand we just have to change section part of documention and put expose section on top before the dump section. What do you think ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, that would be a nice solution.

@JohJohan
Copy link

JohJohan commented Jul 2, 2024

@ismail1432 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