security:
    encoders:
         App\Entity\User: 
            algorithm: bcrypt
    
    providers:
        db:
            entity:
                class: App\Entity\User
                property: email
    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            pattern: ^/
            anonymous: ~
            provider: db
            form_login:
                login_path: login
                check_path: login
            logout:
                path: /logout
                target: /
    
    access_control:
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
