On 4/27/11 9:54 AM, winzou wrote:
Unfortunatly there isn't the "requirements" parameter of the route in
the request attributes. That's why I'm only fetching the name of the
route from the request attributes, and then use it to retrieve the Route
from the RouteCollection, to finaly reach the requirements via
$route->getRequirement('_format').
A long way just to get the route requirements !

Again, you cannot rely on the RouteCollection being available. That's not always the case.

Fabien

--
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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

--
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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to