123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- security:
- encoders:
- AppBundle\Entity\User: sha512
- role_hierarchy:
- ROLE_ADMIN: [ROLE_USER, ROLE_MODERATEUR]
- ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
-
- providers:
- main:
- entity:
- class: AppBundle\Entity\User
- property: username
- firewalls:
-
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
- main_login:
- pattern: ^/(login$|register)
- anonymous: true
- logout_on_user_change: true
- main:
- anonymous: false
- pattern: ^/
- logout_on_user_change: true
- provider: main
- form_login:
- login_path: login
- check_path: login_check
- logout:
- path: logout
- target: login
- remember_me:
- secret: "%secret%"
- switch_user: true
-
-
-
-
-
- access_control:
- - { path: ^/admin, roles: ROLE_ADMIN }
|