# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
    secret: '%env(APP_SECRET)%'
    #csrf_protection: true

    # Note that the session will be started ONLY if you read or write from it.
    session: true

    #esi: true
    #fragments: true

    # rajouté pour API
    # cors:
    #     paths:
    #         '^/api/':
    #             allow_origin: ['http://localhost:3000'] 
    #             allow_methods: ['POST', 'GET', 'OPTIONS', 'DELETE', 'PUT']
    #             allow_headers: ['Content-Type', 'Authorization']
    #             max_age: 3600

when@test:
    framework:
        test: true
        session:
            storage_factory_id: session.storage.factory.mock_file
