考虑到我的安全。yml文件。因此,我需要提供"twilight"作为参数
防火墙:
frontend:
pattern: /twilight/backend/.*
provider: fos_userbundle
anonymous: ~
form_login:
check_path: /twilight/backend/login_check
login_path: /twilight/backend/signin
username_parameter: _username
password_parameter: _password
csrf_parameter: _csrf_token
intention: authenticate
post_only: true
remember_me: true
#use_referer: true
always_use_default_target_path: true
default_target_path: /twilight/backend/securepage
关于您的参数。Yml(或您包含或已加载的任何配置文件)设置:
custom_path: "/twilight"
并从安全性中获取custom_path变量。yml文件:
check_path: %custom_path%/backend/login_check