redis session
This commit is contained in:
@ -7,7 +7,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: Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler
|
||||
name: '%env(APP_ALIAS)%'
|
||||
gc_probability: null
|
||||
cookie_secure: auto
|
||||
|
@ -113,6 +113,17 @@ services:
|
||||
resource: '../src/Controller'
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
Redis:
|
||||
class: Redis
|
||||
calls:
|
||||
- connect:
|
||||
- '%env(REDIS_HOST)%'
|
||||
- '%env(int:REDIS_PORT)%'
|
||||
|
||||
Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler:
|
||||
arguments:
|
||||
- '@Redis'
|
||||
|
||||
App\EventListener\AllSubscriber:
|
||||
public: true
|
||||
tags:
|
||||
|
Reference in New Issue
Block a user