Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

security.yaml 1.5KB

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