public function SessionProxy_Helper::setBackend in Session Proxy 7
Set backend.
Parameters
SessionProxy_Backend_Interface $backend:
Throws
Exception If already set.
File
- lib/
SessionProxy/ Helper.php, line 64
Class
- SessionProxy_Helper
- Static tool container.
Code
public function setBackend(SessionProxy_Backend_Interface $backend) {
if (isset($this->backend) && $this->backend
->isStarted()) {
throw new Exception("Cannot replace session backend at runtime.");
}
$this->backend = $backend;
}