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
When using annotations, you can define multiple routes. Like that:
/** * @Route ("item1") * @Route ("item/2") * @Method("GET") */ public function itemAction() { }
I'm using Version 2.0.9
2.1m questions
2.1m answers
60 comments
57.0k users