Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

35 строки
1.2 KiB

  1. security:
  2. # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
  3. providers:
  4. users_in_memory: { memory: null }
  5. my_entity_users:
  6. entity:
  7. class: App\Entity\User
  8. firewalls:
  9. dev:
  10. pattern: ^/(_(profiler|wdt)|css|images|js)/
  11. security: false
  12. main:
  13. anonymous: true
  14. lazy: true
  15. provider: users_in_memory
  16. guard:
  17. authenticators:
  18. - App\Security\LoginFormAuthenticator
  19. logout:
  20. path: app_logout
  21. # where to redirect after logout
  22. # target: app_any_route
  23. # activate different ways to authenticate
  24. # https://symfony.com/doc/current/security.html#firewalls-authentication
  25. # https://symfony.com/doc/current/security/impersonating_user.html
  26. # switch_user: true
  27. # Easy way to control access for large sections of your site
  28. # Note: Only the *first* access control that matches will be used
  29. access_control:
  30. # - { path: ^/admin, roles: ROLE_ADMIN }
  31. # - { path: ^/profile, roles: ROLE_USER }