php - Symfony security placeholders -
i'm trying find out if there possibility use placeholders in security.yml config of symfony.
i have following security.yml:
order_area: pattern: ^/{_checkout}/ anonymous: ~ provider: ehv_customer security: true context: customer
i'm building checkout process multiple languages, don't want use 1 standard language handle routing e.g. /checkout/1, /checkout/2. checkout protected symfony firewall allow customers logged in.
is there way can define placeholder handle security firewall routing per language. following link other example of problem didn't work me: symfony-2 > login & logout routes placeholders. use prefix that's last option.
perhaps it's possible add firewall rules through php instead of yml or xml?
symfony version: 2.5.3
you may want read on symfony localization component, uses _locale
parameter. may usable in security.yml patterns, you'll have test sure.
Comments
Post a Comment