Is that possible with symfony2 to define multiple url patterns for a single Controller Action using regular expressions, so we don’t have to define several rules ?
Thanks in advance
Is that possible with symfony2 to define multiple url patterns for a single Controller
Share
Do you mean placeholders with requirements?
Here you have multiple routes defined by a placeholder, validated by regular expressions going to the same controller action.
Edit:
Each part of the url can be a placeholder.