issue-12: implémentation redis pour la gestion des session
All checks were successful
Cadoles/hydra-sql/pipeline/pr-develop This commit looks good
Cadoles/hydra-sql/pipeline/head This commit looks good

This commit is contained in:
2023-06-12 15:26:56 +02:00
parent 8d52721172
commit a83e8d07ef
11 changed files with 583 additions and 496 deletions

View File

@ -12,7 +12,7 @@ framework:
# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
session:
handler_id: null
handler_id: '%env(REDIS_URL)%'
cookie_secure: auto
cookie_samesite: lax
storage_factory_id: session.storage.factory.native
@ -25,9 +25,10 @@ framework:
#fragments: true
php_errors:
log: true
error_controller: App\Controller\CustomErrorController::show
when@test:
framework:
test: true
session:
storage_factory_id: session.storage.factory.mock_file
storage_factory_id: session.storage.factory.mock_file