File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,21 @@ In applications not using webpack add these two lines in your layout:
2222
2323
2424If you are using webpack and Encore to package your assets you will need to use the dump command
25- and export your routes to json:
25+ and export your routes to json, this command will create a json file into the `` web/js `` folder :
2626
2727.. code-block :: bash
2828
29+ # Symfony 3
2930 bin/console fos:js-routing:dump --format=json
3031
32+ If you are using Flex, probably you want to dump your routes into the ``public `` folder
33+ instead of ``web ``, to achieve this you can set the ``target `` parameter:
34+
35+ .. code-block :: bash
36+
37+ # Symfony Flex
38+ bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
39+
3140 Then within your JavaScript development you can use:
3241
3342.. code-block :: javascript
You can’t perform that action at this time.
0 commit comments