Constructor.
string $savePath Path of directory to save session files.:
string $name Session name.:
MetadataBag $metaBag MetadataBag instance.:
Overrides MockArraySessionStorage::__construct
public function __construct($savePath = null, $name = 'MOCKSESSID', MetadataBag $metaBag = null) {
if (null === $savePath) {
$savePath = sys_get_temp_dir();
}
if (!is_dir($savePath)) {
mkdir($savePath, 0777, true);
}
$this->savePath = $savePath;
parent::__construct($name, $metaBag);
}