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

    # Note that the session will be started ONLY if you read or write from it.
    session:
        # Timeout de session : 8 heures (28800 secondes)
        # Pour l'admin, la session dure toute la journée de travail
        cookie_lifetime: 28800
        gc_maxlifetime: 28800
        cookie_secure: auto
        cookie_samesite: lax

    #esi: true
    #fragments: true

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