Reputation: 1727
On some of my pages, I would like to show enhanced content for users that are authenticated. Is this possible? More specifically I'd like to show enhanced content to authenticated users on the "support" firewall.
I am not using the FOSUserBundle (but I could if need be). I'm using Symfony 2.7.5
firewalls:
login:
pattern: ^/Login$
security: false
support:
pattern: ^/Support
anonymous: ~
home:
pattern: ^/$
anonymous: ~
account_create:
pattern: ^/Account/Create$
anonymous: ~
secured_area:
remember_me:
key: "%secret%"
lifetime: 604800 # One week
pattern: ^/
form_login:
provider: local_auth
check_path: login_check
login_path: login
logout:
path: logout
target: /
Upvotes: 1
Views: 212