Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- encoders:
- App\Entity\User:
- algorithm: bcrypt
- providers:
- my_provider:
- entity:
- class: App\Entity\User
- property: username
- firewalls:
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
- main:
- anonymous: true
- form_login:
- login_path: login
- check_path: login
- provider: my_provider
- logout:
- path: /logout
- target: /
- # Easy way to control access for large sections of your site
- # Note: Only the *first* access control that matches will be used
- access_control:
- # - { path: ^/admin, roles: ROLE_ADMIN }
- # - { path: ^/profile, roles: ROLE_USER }
Add Comment
Please, Sign In to add comment