Guest User

Untitled

a guest
Jan 23rd, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. security:
  2. encoders:
  3. App\Entity\User:
  4. algorithm: bcrypt
  5. providers:
  6. my_provider:
  7. entity:
  8. class: App\Entity\User
  9. property: username
  10.  
  11. firewalls:
  12. dev:
  13. pattern: ^/(_(profiler|wdt)|css|images|js)/
  14. security: false
  15. main:
  16. anonymous: true
  17.  
  18. form_login:
  19. login_path: login
  20. check_path: login
  21. provider: my_provider
  22.  
  23. logout:
  24. path: /logout
  25. target: /
  26.  
  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 }
Add Comment
Please, Sign In to add comment