function MarshallingSessionHandler::write
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ Handler/ MarshallingSessionHandler.php, line 52
Class
- MarshallingSessionHandler
- @author Ahmed TAILOULOUTE <ahmed.tailouloute@gmail.com>
Namespace
Symfony\Component\HttpFoundation\Session\Storage\HandlerCode
public function write(string $sessionId, string $data) : bool {
$failed = [];
$marshalledData = $this->marshaller
->marshall([
'data' => $data,
], $failed);
if (isset($failed['data'])) {
return false;
}
return $this->handler
->write($sessionId, $marshalledData['data']);
}