From 5d0d301256eb2bd5b5821ba391005f3eb333517b Mon Sep 17 00:00:00 2001 From: Marco Stoll Date: Tue, 15 Jun 2021 12:00:12 +0200 Subject: [PATCH] [FIX] auto set custom save handler --- src/Services/Sessions/Session.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Services/Sessions/Session.php b/src/Services/Sessions/Session.php index 5c49b97..8369c04 100644 --- a/src/Services/Sessions/Session.php +++ b/src/Services/Sessions/Session.php @@ -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 . ']';