I'm using symfony2.0.0. I don't have a chance to update symfony. This is my security.yml
firewalls:
main:
logout: true
pattern: .*
http_basic: true
anonymous: true
form_login:
provider: fos_userbundle
login_path: /login
use_forward: true
check_path: /login_check
failure_path: /login_fail
remember_me:
key: "lkjxd%34(lksdf;SDfsf"
lifetime: 31536000
path: /
domain: ~
How can I use locale for my failure_path. Tried to use /%locaale%/failure_path but it always return en(my default locale). It does not understand route names. If I use the name of the route e.g. login_fail it does not work(redirecting like a relative path).
This is my route.
login_fail:
pattern: /{_locale}/login_fail
defaults: { _controller: ContactbeeProfileBundle:Profile:dashboard, _locale: en }
Any ideas to fix it?