I am having an issue with a route in Symfony, I have a route setup that needs to match the below:
/my-test-route-holidays/
The above "my-test-route" is the placeholder variable.
The route in symfony is as follows:
overview:
path: /{var}-holidays/
defaults: { _controller: AppBundle:Overview:index }
Symfony cannot find the route, a route like below does work without dashes/hyphens in the variable:
/test-holidays/
So my question is, how can I allow hyphens inside a route placeholder?
Thanks