imports:
    - { resource: ./../config/framework.yml }

framework:
    http_method_override: false
    serializer: ~

security:
    password_hashers:
        Symfony\Component\Security\Core\User\InMemoryUser: plaintext

    providers:
        in_memory:
            memory:
                users:
                    dunglas: { password: foo, roles: [ROLE_USER] }

    firewalls:
        main:
            pattern: ^/
            lazy: true
            access_token:
                token_handler: access_token.access_token_handler
                token_extractors: 'security.access_token_extractor.header'

    access_control:
        - { path: ^/foo, roles: ROLE_USER }
        - { path: ^/bar, roles: PUBLIC_ACCESS }

services:
    access_token.access_token_handler:
        class: Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\AccessTokenBundle\Security\Handler\AccessTokenHandler
