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 committed Nov 16, 2022
1 parent f80354d commit 15209b1
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 15209b1

Please sign in to comment.