@@ -2,28 +2,30 @@ security:
22 # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
33 password_hashers :
44 Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface : ' auto'
5+
56 # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
67 providers :
78 users_in_memory : { memory: null }
9+
810 firewalls :
9- # Disable security for dev tools and static assets (only needed if access_control is broad)
11+ # Disable security for dev tools and static assets (only needed if access_control is broad):
1012 dev :
11- # 'assets/' is for AssetMapper, 'build/' for Webpack Encore
12- # (note : no regex delimiters needed; Symfony adds `{}` automatically)
13+ # 'assets/' is for AssetMapper, 'build/' for Webpack Encore.
14+ # (Note : no regex delimiters needed; Symfony adds `{}` automatically. )
1315 pattern : ^/(_profiler|_wdt|assets|build)/
1416 security : false
1517 main :
1618 lazy : true
1719 provider : users_in_memory
1820
19- # activate different ways to authenticate
21+ # Activate different ways to authenticate:
2022 # https://symfony.com/doc/current/security.html#the-firewall
2123
2224 # https://symfony.com/doc/current/security/impersonating_user.html
2325 # switch_user: true
2426
25- # Easy way to control access for large sections of your site
26- # Note: Only the *first* access control that matches will be used
27+ # Controls access to different sections of the application.
28+ # Only the *first* matching rule is applied.
2729 access_control :
2830 # - { path: ^/admin, roles: ROLE_ADMIN }
2931 # - { path: ^/profile, roles: ROLE_USER }
0 commit comments