| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | 
							- # To get started with security, check out the documentation:
 
- # https://symfony.com/doc/current/security.html
 
- security:
 
-     encoders:
 
-         App\Entity\User: sha512
 
-     role_hierarchy:
 
-         ROLE_ADMIN: [ROLE_USER, ROLE_MODERATEUR]
 
-         ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
 
-     # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
 
-     providers:
 
-         main:
 
-             entity:
 
-                 class: App\Entity\User
 
-                 property: username
 
-     firewalls:
 
-         # disables authentication for assets and the profiler, adapt it according to your needs
 
-         dev:
 
-             pattern: ^/(_(profiler|wdt)|css|images|js)/
 
-             security: false
 
-         main:
 
-             anonymous: false
 
-             pattern: ^/
 
-             provider: main
 
-             guard:
 
-                 authenticators:
 
-                     - App\Security\LoginFormAuthenticator
 
-             remember_me:
 
-                 secret: '%env(APP_SECRET)%'
 
-             switch_user: true
 
-             # activate different ways to authenticate
 
-             # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
 
-             #http_basic: ~
 
-             # https://symfony.com/doc/current/security/form_login_setup.html
 
-             #form_login: ~
 
-     access_control:
 
-         - { path: ^/(login$|register$|motdepasseoublie$|resetpassword/token=|activate/token=) , roles: IS_AUTHENTICATED_ANONYMOUSLY }
 
-         - { path: ^/admin, roles: ROLE_ADMIN }
 
-         - { path: ^/genre, roles: ROLE_MODERATEUR }
 
 
  |