for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* NullHandler.php
*
* @copyright More in license.md
* @license http://www.ipublikuj.eu
* @author Adam Kadlec http://www.ipublikuj.eu
* @package iPublikuj:WebSocketSession!
* @subpackage Session
* @since 1.0.0
* @date 19.02.17
*/
declare(strict_types = 1);
namespace IPub\WebSocketsSession\Session;
use Nette;
* Null session handler can be used in unit testing or in a situations where persisted sessions are not desired
* @author Adam Kadlec <[email protected]>
class NullHandler implements \SessionHandlerInterface
{
* Implement nette smart magic
use Nette\SmartObject;
* {@inheritdoc}
public function open($savePath, $sessionName)
return TRUE;
}
public function close()
public function read($sessionId)
return '';
public function write($sessionId, $data)
public function destroy($sessionId)
public function gc($maxLifetime)