Symfony 2 - firewall and access control issue

前端 未结 2 1222
误落风尘
误落风尘 2020-12-16 07:15

I\'ve got a wired problem with the symfony 2 security component. Due to the fact that the {{ app.user }} object is only available within the secured area, I set

2条回答
  •  情歌与酒
    2020-12-16 07:39

    USe anynymous directive in account_area:

    account_area:
            pattern:    ^/
            anonymous: ~
    

提交回复
热议问题