Merge pull request #1980 from alchemy-fr/feature/native-session-handler

Native session handler
This commit is contained in:
Thibaud Fabre
2016-10-13 14:40:04 +02:00
committed by GitHub

View File

@@ -17,6 +17,7 @@ use Alchemy\Phrasea\Utilities\RedisSessionHandler;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\WriteCheckSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\Handler\WriteCheckSessionHandler;
class SessionHandlerFactory class SessionHandlerFactory
@@ -67,6 +68,8 @@ class SessionHandlerFactory
$this->connectionFactory->getRedisConnection($options, $serverOpts) $this->connectionFactory->getRedisConnection($options, $serverOpts)
) )
); );
case 'native':
return new NativeSessionHandler();
} }
throw new RuntimeException(sprintf('Unable to create the specified session handler "%s"', $type)); throw new RuntimeException(sprintf('Unable to create the specified session handler "%s"', $type));