Hello,

Is there a way to define 'requirements' for all routing rules ?
Instead of repeating it for each rule...

For example, I have :

rule1:
  url: /:sf_culture/page
  param: { module: default, action: page }
  requirements: { sf_culture: '(fr|en)' }

rule2:
  url: /:sf_culture/page2
  param: { module: default, action: page2 }
  requirements: { sf_culture: '(fr|en)' }


And I would like to do something like that :

*:
  requirements: { sf_culture: '(fr|en)' }

rule1:
  url: /:sf_culture/page
  param: { module: default, action: page }

rule2:
  url: /:sf_culture/page2
  param: { module: default, action: page2 }


Thanks for your help,

--~--~---------~--~----~------------~-------~--~----~
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