-
Notifications
You must be signed in to change notification settings - Fork 261
Inform to expose routes annotation before run dump #317
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
base: master
Are you sure you want to change the base?
Conversation
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
|
|
||
| .. note:: | ||
|
|
||
| If you are using annotations for routing you have to expose your routes before running this command |
There was a problem hiding this comment.
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).
| 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:: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
|
@ismail1432 any update on this? |
|
@ismail1432 any chance that you get this updated so maintainer could merge it in a future? Thanks |
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