From ad6f71a5e3ebf7d24ae0cc344d78037c11c345a5 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 2 Feb 2018 10:22:19 -0500 Subject: [PATCH 1/2] 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 } From 4708c9473f72d83edb1bda09dffa2020e3f32ad5 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Sat, 3 Feb 2018 12:30:35 -0500 Subject: [PATCH 2/2] capitalization --- symfony/security-bundle/3.3/config/packages/security.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/symfony/security-bundle/3.3/config/packages/security.yaml b/symfony/security-bundle/3.3/config/packages/security.yaml index 8badc201..503df389 100644 --- a/symfony/security-bundle/3.3/config/packages/security.yaml +++ b/symfony/security-bundle/3.3/config/packages/security.yaml @@ -17,8 +17,8 @@ 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 + # 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 }