From ad6f71a5e3ebf7d24ae0cc344d78037c11c345a5 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 2 Feb 2018 10:22:19 -0500 Subject: [PATCH] adding access_control examples and small warning --- symfony/security-bundle/3.3/config/packages/security.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/symfony/security-bundle/3.3/config/packages/security.yaml b/symfony/security-bundle/3.3/config/packages/security.yaml index c5eefb67..8badc201 100644 --- a/symfony/security-bundle/3.3/config/packages/security.yaml +++ b/symfony/security-bundle/3.3/config/packages/security.yaml @@ -16,3 +16,9 @@ security: # form_login: ~ # https://symfony.com/doc/current/security/form_login_setup.html + + # easy way to control access for large sections of your site + # note: only the *first* access control that matches will be used + access_control: + # - { path: ^/admin, roles: ROLE_ADMIN } + # - { path: ^/profile, roles: ROLE_USER }