mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Merge pull request #1980 from alchemy-fr/feature/native-session-handler
Native session handler
This commit is contained in:
@@ -17,6 +17,7 @@ use Alchemy\Phrasea\Utilities\RedisSessionHandler;
|
||||
use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler;
|
||||
use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler;
|
||||
use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler;
|
||||
use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler;
|
||||
use Symfony\Component\HttpFoundation\Session\Storage\Handler\WriteCheckSessionHandler;
|
||||
|
||||
class SessionHandlerFactory
|
||||
@@ -67,6 +68,8 @@ class SessionHandlerFactory
|
||||
$this->connectionFactory->getRedisConnection($options, $serverOpts)
|
||||
)
|
||||
);
|
||||
case 'native':
|
||||
return new NativeSessionHandler();
|
||||
}
|
||||
|
||||
throw new RuntimeException(sprintf('Unable to create the specified session handler "%s"', $type));
|
||||
|
Reference in New Issue
Block a user