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

@ -8,8 +8,8 @@ framework:
# Other options include:
# Redis
#app: cache.adapter.redis
#default_redis_provider: redis://localhost
app: cache.adapter.redis
default_redis_provider: '%env(REDIS_URL)%'
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
#app: cache.adapter.apcu

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

View File

@ -1,7 +1,7 @@
sql_login:
login_column_name: email
password_column_name: password
salt_column_name: ~
salt_column_name: salt
table_name: usager
data_to_fetch:
- email