Symfony2 catch all route
In the following example the routing component sends all request to my IndexController:catchAll
action.
catch_all:
path: /{catchall}
defaults:
_controller: YourProjectBundle:Index:catchAll
requirements:
catchall: ".+"
Thanks for reading
Feel free to leave a comment if you have remarks or like this post