-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Object Routing #2288
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
Comments
IMHO this breaks single responsibility principle |
You could do your own helper called something like <?php
interface ObjectRouteInterface
{
function getRouteName();
function getRouteParameters();
} |
In Symfony2, the routing component is just about converting a path info into parameters, nothing more. We already have param converters to automatically convert request attributes to objects. So, we probably can think about how to do the same for generation (no idea how to do that though). |
have a look at this Bundle: https://github.com/symfony-cmf/ChainRoutingBundle so i think we can close this ticket .. |
Any chance we'll get to see object routing from sf1.x. Would be great to generate URLs from doctrine entities.
Note: I know about ParamConverter
The text was updated successfully, but these errors were encountered: