We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can expose routes for only one domain in actual functionality.
/** * @Route("/a-page", * options = { "expose" = true }, * name = "my_route_to_expose_with_defaults", * ) */
Able to expose routes to different domains like following.
/** * @Route("/a-page", * options = { "expose" = "blog" }, * name = "my_route_to_expose_blog", * ) */ /** * @Route("/a-secret-page", * options = { "expose" = "admin" }, * name = "my_route_to_expose_admin", * ) */
Then we can expose routes by different contexts like following.
<script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData", "domain": "blog"}) }}"></script> <script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData", "domain": "admin"}) }}"></script>
also
$ php bin/console fos:js-routing:dump --domain=blog
<script src="/js/fos_js_routes_blog.js"></script>
$ php bin/console fos:js-routing:dump --domain=admin
<script src="/js/fos_js_routes_admin.js"></script>
{ "expose" = true } able to mean {"expose" = "default"} or {"expose" = "main"} to backward compatibility
{ "expose" = true }
{"expose" = "default"}
{"expose" = "main"}
Also merge all of domains' routes into single dump if we don't provide domain name like following.
$ php bin/console fos:js-routing:dump
<script src="/js/fos_js_routes.js"></script>
Also we can combine domain names
$ php bin/console fos:js-routing:dump --domain=admin,blog
<script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData", "domain": ["blog", admin]}) }}"></script>
The text was updated successfully, but these errors were encountered:
Closed via #347
Sorry, something went wrong.
No branches or pull requests
We can expose routes for only one domain in actual functionality.
Able to expose routes to different domains like following.
Then we can expose routes by different contexts like following.
also
{ "expose" = true }
able to mean{"expose" = "default"}
or{"expose" = "main"}
to backward compatibilityAlso merge all of domains' routes into single dump if we don't provide domain name like following.
Also we can combine domain names
The text was updated successfully, but these errors were encountered: