/
home
/
obinna
/
html
/
cravings
/
vendor
/
sentry
/
sentry
/
src
/
Transport
/
Upload File
HOME
<?php declare(strict_types=1); namespace Sentry\Transport; use GuzzleHttp\Promise\FulfilledPromise; use GuzzleHttp\Promise\PromiseInterface; use Sentry\Event; use Sentry\Response; use Sentry\ResponseStatus; /** * This transport fakes the sending of events by just ignoring them. * * @author Stefano Arlandini <sarlandini@alice.it> */ final class NullTransport implements TransportInterface { /** * {@inheritdoc} */ public function send(Event $event): PromiseInterface { return new FulfilledPromise(new Response(ResponseStatus::skipped(), $event)); } /** * {@inheritdoc} */ public function close(?int $timeout = null): PromiseInterface { return new FulfilledPromise(true); } }