security.yaml 722 B

1234567891011121314151617181920212223242526
  1. security:
  2. encoders:
  3. App\Entity\User:
  4. algorithm: bcrypt
  5. providers:
  6. entity_user_provider:
  7. entity:
  8. class: App\Entity\User
  9. firewalls:
  10. dev:
  11. pattern: ^/(_(profiler|wdt)|css|images|js)/
  12. security: false
  13. main:
  14. anonymous: lazy
  15. provider: entity_user_provider
  16. guard:
  17. authenticators:
  18. - App\Components\Security\Authenticator\LoginFormAuthenticator
  19. entry_point: App\Components\Security\Authenticator\LoginFormAuthenticator
  20. logout:
  21. path: logout
  22. access_control:
  23. - { path: ^/admin, roles: ROLE_USER }