I’m currently developing an application using Symfony 2 and would like my routes to be case-insensitive.
I’ve included an example route. This only matches /some_url/. I’d like this to match any variation on that pattern. eg. /Some_url/, /SOME_URL/ etc…
some_route:
pattern: /some_url/
defaults: { _controller: Bundle:Controller:Action }
Does anyone know how I can achieve this?
try this:
but as already mentioned in the comments, this is a bad practice