Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

security.yaml 881B

123456789101112131415161718192021222324
  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. firewalls:
  6. dev:
  7. pattern: ^/(_(profiler|wdt)|css|images|js)/
  8. security: false
  9. main:
  10. anonymous: true
  11. lazy: true
  12. provider: users_in_memory
  13. # activate different ways to authenticate
  14. # https://symfony.com/doc/current/security.html#firewalls-authentication
  15. # https://symfony.com/doc/current/security/impersonating_user.html
  16. # switch_user: true
  17. # Easy way to control access for large sections of your site
  18. # Note: Only the *first* access control that matches will be used
  19. access_control:
  20. # - { path: ^/admin, roles: ROLE_ADMIN }
  21. # - { path: ^/profile, roles: ROLE_USER }