Skip to content

Commit

Permalink
Merge pull request #52 from Yonn-Trimoreau/feature/add-read-only-setter
Browse files Browse the repository at this point in the history
Add setter for read only flag
  • Loading branch information
colinmollenhour authored Nov 16, 2022
2 parents b70508a + 7d8d376 commit 3df52a7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Cm/RedisSession/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 3df52a7

Please sign in to comment.