[symfony-devs] Re: [Routing] How to dynamically add requirements to routes.

2012-10-17 Thread Tobias
It is already possible with 'requirements: _locale: %locale%'. The routing will replace %locale% with a parameter named locale in the DI container automatically. Am Mittwoch, 17. Oktober 2012 23:06:20 UTC+2 schrieb Mario Alberto Alvarez Garcia: > > Hi, > I'm trying to find a way to modify the

[symfony-devs] Re: @Route annotation and default _format problem

2012-10-17 Thread Tobias
Yes, its a misunderstanding on your part. /member/account.{_format}/{id} only matches the right placeholder, when the left one matches. So it matches /member/account and /member/account.html and /member/account.html/123 but not /member/account/123 (no format). A proposal of mine that would make

[symfony-devs] [Routing] How to dynamically add requirements to routes.

2012-10-17 Thread Mario Alberto Alvarez Garcia
Hi, I'm trying to find a way to modify the routes requirement of my application, according to a parameter in the service container. I'd like to know if there is an event, and which is, that is called before dumping the routes to the cache. What I'm trying to achieve is before dumping the rou