From 0c8f507abef2e397a0e37911fe3c717094a03512 Mon Sep 17 00:00:00 2001 From: Thibaud Fabre Date: Thu, 13 Oct 2016 14:29:23 +0200 Subject: [PATCH] PHRAS-1236 Add native session handler config option Allows use of custom session handlers via php.ini --- .../Phrasea/Core/Configuration/SessionHandlerFactory.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Alchemy/Phrasea/Core/Configuration/SessionHandlerFactory.php b/lib/Alchemy/Phrasea/Core/Configuration/SessionHandlerFactory.php index 99dbe5c8b2..8c9d5cfffb 100644 --- a/lib/Alchemy/Phrasea/Core/Configuration/SessionHandlerFactory.php +++ b/lib/Alchemy/Phrasea/Core/Configuration/SessionHandlerFactory.php @@ -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));