-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Ability to load routes from objects/services #5747
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 s 8000 ervice and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@weaverryan any chance you work on this soon? would love to mention it in my "routing under the hood" talk at the symfony user group meeting in zurich next week... i see what you did, but am not sure how one would actually go about using it in a project. |
can i just say |
@dbu yes, like this: admin_routes:
resource: 'admin_route_loader:loadRoutes'
type: service # <-- very important This calls the |
Thanks Wouter - it's exactly as you said :). I probably won't doc this before then, so hopefully this will get you going - happy you're chatting about it! |
We don't cover the route "loaders" anywhere now, so I'm not sure where to put this. Maybe a tiny cookbook article called "How to load routes from a Service"? |
Just found out about this feature, works pretty nicely! @weaverryan I'd expect to find a reference in this guide. That is the one I found when searching for how to load routes from other sources (like from the db). |
@nicoschoenmaker want to do a pull request to add it to that cookbook article? (against the 2.8 branch) |
Fixed by #9101. |
see symfony/symfony#15742
The text was updated successfully, but these errors were encountered: