[FIX] auto set custom save handler

This commit is contained in:
Marco Stoll 2021-06-15 12:00:12 +02:00
parent e1b46bcb58
commit 5d0d301256

View File

@ -350,6 +350,8 @@ class Session extends AbstractService
if (!($sessionHandler instanceof \SessionHandlerInterface)) {
$errors[] = '[' . $options['custom_handler'] . '] is not a \SessionHandlerInterface';
}
$this->setSaveHandler($sessionHandler);
} catch (ClassNotFoundException | ConfigurationException $exception) {
$errors[] = 'unable to retrieve [' . $options['custom_handler'] . '] from the service factory - '
. '[' . (string)$exception . ']';