Skip to content

Commit ad6f71a

Browse files
committed
adding access_control examples and small warning
1 parent d3ce701 commit ad6f71a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

symfony/security-bundle/3.3/config/packages/security.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ security:
1616

1717
# form_login: ~
1818
# https://symfony.com/doc/current/security/form_login_setup.html
19+
20+
# easy way to control access for large sections of your site
21+
# note: only the *first* access control that matches will be used
22+
access_control:
23+
# - { path: ^/admin, roles: ROLE_ADMIN }
24+
# - { path: ^/profile, roles: ROLE_USER }

0 commit comments

Comments
 (0)