Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

42 lines
1.4KB

  1. security:
  2. enable_authenticator_manager: true
  3. encoders:
  4. App\Entity\User\User:
  5. algorithm: auto
  6. # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
  7. providers:
  8. # used to reload user from session & other features (e.g. switch_user)
  9. app_user_provider:
  10. entity:
  11. class: App\Entity\User\User
  12. property: email
  13. firewalls:
  14. dev:
  15. pattern: ^/(_(profiler|wdt)|css|images|js)/
  16. security: false
  17. admin:
  18. pattern: ^/(admin|login|logout)
  19. lazy: true
  20. form_login:
  21. login_path: sov_login
  22. check_path: sov_login
  23. http_basic: ~
  24. entry_point: form_login
  25. provider: app_user_provider
  26. custom_authenticator: Lc\SovBundle\Authenticator\LoginFormAuthenticator
  27. logout:
  28. path: sov_logout
  29. target: sov_login
  30. # Easy way to control access for large sections of your site
  31. # Note: Only the *first* access control that matches will be used
  32. access_control:
  33. - { path: ^/admin, roles: [ROLE_ANIMATOR, ROLE_ADMIN, ROLE_SUPER_ADMIN] }
  34. role_hierarchy:
  35. ROLE_ANIMATOR: [ ROLE_USER ]
  36. ROLE_ADMIN: [ ROLE_ANIMATOR ]
  37. ROLE_SUPER_ADMIN: [ ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ]