login_form結果我收到以下異常,如果我使用了 「simple_form」 - 選項在我security.yml:Symfony的V2.4 simple_form>在ServiceNotFoundException的
ServiceNotFoundException: The service "security.firewall.map.context.secured_area"
has a dependency on a non-existent service
"security.authentication.success_handler.secured_area.simple_form".
我需要 「simple_form」 sinds它「認證者」 - 選項。 使用 「form_login」 導致以下異常:
InvalidConfigurationException: Unrecognized options "authenticator" under "security.firewalls.secured_area.form_login"
我security.yml(僅適用於相關的配置拷貝)
security:
firewalls:
secured_area:
simple_form:
login_path: /login
check_path: /login_check
authenticator: some_wild_authenticator
use_referer: true
csrf_provider: form.csrf_provider
success_handler: security.authentication.success_handler
failure_handler: security.authentication.failure_handler
我錯過了什麼?錯誤?不可能?解?解決方法?
我跑這個SF2.4
'模式導致:^/your_pattern'缺少 – Nisam
不,我沒有,沒有複製它,因爲它是不相關的。 – Airoude
請看看我的安全配置,http://pastebin.com/ZJgC0LZw其爲我工作 – Nisam