Skip to content

Commit 3df52a7

Browse files
Merge pull request #52 from Yonn-Trimoreau/feature/add-read-only-setter
Add setter for read only flag
2 parents b70508a + 7d8d376 commit 3df52a7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Cm/RedisSession/Handler.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,19 @@ protected function hasConnection()
416416
}
417417
}
418418

419+
/**
420+
* Set/unset read only flag
421+
*
422+
* @param boolean $readOnly
423+
* @return self
424+
*/
425+
public function setReadOnly($readOnly)
426+
{
427+
$this->_readOnly = $readOnly;
428+
429+
return $this;
430+
}
431+
419432
/**
420433
* Fetch session data
421434
*

0 commit comments

Comments
 (0)