You can find all routes for the application but not for a controller:
app/console router:debug
But...
By the name of the route or the pattern you should be able to recognize
which routes are the corresponding to your controller.
The output of that command is Route name / HTTP Method / Pattern.
El viernes, 5 de octubre de 2012, dustinT escribió:
> Hi there,
> yesterday I started to find out a way to get all routes from one single
> controller.
> Is there any way to do that without reparse the controller annotations
> again or iterate through the routes=>controller in the router?
> regards
> dustin
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
> You received this message because you are subscribed to the Google
> Groups "Symfony2" group.
> To post to this group, send email to symfony2@googlegroups.com<javascript:_e({}, 'cvml', 'symfony2@googlegroups.com');>
> To unsubscribe from this group, send email to
> symfony2+unsubscribe@googlegroups.com <javascript:_e({}, 'cvml',
> 'symfony2%2Bunsubscribe@googlegroups.com');>
> For more options, visit this group at
> http://groups.google.com/group/symfony2?hl=en