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.

преди 3 години
1234567891011121314151617181920212223242526272829303132333435363738
  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: ^/manager, roles: [ROLE_ADMIN, ROLE_SUPER_ADMIN] }
  34. - { path: ^/admin, roles: [ROLE_ADMIN, ROLE_SUPER_ADMIN] }
  35. - { path: ^/profile, roles: ROLE_USER }