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 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 routes, search for routes 
> which have a specific parameter (_locale in my case) and apply a 
> requirement to it. The locales are going to be configurable in the 
> container.
>
> Any tip would be greatly appreciated. 
> Thanks in regards!
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to