imports:
    - { resource: security.yml }

framework:
    secret:          fbe0b58410c7435d8b0afde3a2108fade7
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: ~
    form:            ~
    csrf_protection: ~
    validation:      { enable_annotations: true }
    templating:
        engines: [ 'twig' ]
    default_locale:  en
    trusted_proxies: ~
    fragments:       ~
    test: ~
    session:
        storage_id:  session.storage.mock_file
    profiler:
        enabled:     false
    serializer:
            enabled: true

# Twig Configuration
twig:
    debug:            true
    strict_variables: true

services:
    twig.extension.debug:
        class: Twig_Extension_Debug
        tags:
            - { name: twig.extension }
    custom_normalizer:
        class: Symfony\Component\Serializer\Normalizer\CustomNormalizer
        tags:
            - { name: serializer.normalizer }
    get_set_method_normalizer:
        class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
        tags:
            - { name: serializer.normalizer }

# Doctrine Configuration
doctrine:
    dbal:
        driver: pdo_sqlite
        path:   "%kernel.cache_dir%/.ht.sqlite"

    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        auto_mapping: true

authbucket_oauth2:
    driver:                 orm
    user_provider:          security.user.provider.concrete.default
    model:
        access_token:       AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity\AccessToken
        authorize:          AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity\Authorize
        client:             AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity\Client
        code:               AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity\Code
        refresh_token:      AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity\RefreshToken
        scope:              AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity\Scope
        user:               AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity\User
