Skip to content

Commit

Permalink
Add setter for read only flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonn Trimoreau committed Nov 16, 2022
1 parent b70508a commit 7d8d376
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 7d8d376

Please sign in to comment.