security:

    password_hashers:
        Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'

    providers:
      app_user_provider:
        entity:
          class: App\Entity\User
          property: email

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            lazy: true
            provider: app_user_provider
            custom_authenticator: App\Core\Security\LoginFormAuthenticator
            logout:
                path: bo_logout
                target: bo_login
            remember_me:
                secret: '%kernel.secret%'
                lifetime: 604800 # 1 week in seconds
                token_provider:
                    doctrine: true
                always_remember_me: true



    access_control:
        - { path: ^/admin/login, roles: PUBLIC_ACCESS }
        - { path: ^/admin/change-password/enter-email, roles: PUBLIC_ACCESS }
        - { path: ^/admin/change-password/send-link, roles: PUBLIC_ACCESS }
        - { path: ^/admin/change-password/enter-new-password, roles: PUBLIC_ACCESS }
        - { path: ^/admin/change-password/update, roles: PUBLIC_ACCESS }
        - { path: ^/admin/change-password/success, roles: PUBLIC_ACCESS }
        - { path: ^/admin, roles: ROLE_ADMIN }

when@test:
    security:
        password_hashers:
            Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
                algorithm: auto
                cost: 4 # Lowest possible value for bcrypt
                time_cost: 3 # Lowest possible value for argon
                memory_cost: 10 # Lowest possible value for argon
