From 7d8d376c86c912bf137edba65d8501670cff8c94 Mon Sep 17 00:00:00 2001 From: Yonn Trimoreau Date: Wed, 16 Nov 2022 15:13:21 +0100 Subject: [PATCH] Add setter for read only flag --- src/Cm/RedisSession/Handler.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Cm/RedisSession/Handler.php b/src/Cm/RedisSession/Handler.php index b901452..9482b67 100644 --- a/src/Cm/RedisSession/Handler.php +++ b/src/Cm/RedisSession/Handler.php @@ -416,6 +416,19 @@ protected function hasConnection() } } + /** + * Set/unset read only flag + * + * @param boolean $readOnly + * @return self + */ + public function setReadOnly($readOnly) + { + $this->_readOnly = $readOnly; + + return $this; + } + /** * Fetch session data *