You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 satır
1.4KB

  1. security:
  2. enable_authenticator_manager: true
  3. # encoders:
  4. # App\Entity\User\User:
  5. # algorithm: auto
  6. password_hashers:
  7. Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
  8. # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
  9. providers:
  10. # used to reload user from session & other features (e.g. switch_user)
  11. app_user_provider:
  12. entity:
  13. class: App\Entity\User\User
  14. property: email
  15. firewalls:
  16. dev:
  17. pattern: ^/(_(profiler|wdt)|css|images|js)/
  18. security: false
  19. admin:
  20. pattern: ^/(admin|login|logout)
  21. lazy: true
  22. form_login:
  23. login_path: sov_login
  24. check_path: sov_login
  25. http_basic: ~
  26. entry_point: form_login
  27. provider: app_user_provider
  28. custom_authenticator: Lc\SovBundle\Authenticator\LoginFormAuthenticator
  29. logout:
  30. path: sov_logout
  31. target: sov_login
  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: ^/manager, roles: [ROLE_ADMIN, ROLE_SUPER_ADMIN] }
  36. - { path: ^/admin, roles: [ROLE_ADMIN, ROLE_SUPER_ADMIN] }
  37. - { path: ^/profile, roles: ROLE_USER }