whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
sentry
/
sentry
/
src
/
Transport
/
Upload File:
files >> //home/kckglobal/www/portal/vendor/sentry/sentry/src/Transport/NullTransport.php
<?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); } }
Copyright ©2021 || Defacer Indonesia