Ordering of routes using annotations

Viewed 7470

The usual solution when you create routes in symfony and you want to have one route like

/{username}

so that it does not conflict with other routes like /login or /info is just to put that route as your last route in your routing.yml file. Since all the other routes take precedence this conflict is avoided. But how can you do this if you define your routes as annotations in your controllers? Is there any way to specify the ordering of this routes in this case?

3 Answers
Related