����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 216.73.216.82 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/public_html/vendor/sentry/sentry/src/Transport/ |
Upload File : |
<?php declare(strict_types=1); namespace Sentry\Transport; use Psr\Http\Message\RequestFactoryInterface; use Psr\Http\Message\StreamFactoryInterface; use Psr\Log\LoggerInterface; use Sentry\HttpClient\HttpClientFactoryInterface; use Sentry\Options; use Sentry\Serializer\PayloadSerializer; /** * This class is the default implementation of the {@see TransportFactoryInterface} * interface. */ final class DefaultTransportFactory implements TransportFactoryInterface { /** * @var StreamFactoryInterface A PSR-7 stream factory */ private $streamFactory; /** * @var RequestFactoryInterface A PSR-7 request factory */ private $requestFactory; /** * @var HttpClientFactoryInterface A factory to create the HTTP client */ private $httpClientFactory; /** * @var LoggerInterface|null A PSR-3 logger */ private $logger; /** * Constructor. * * @param StreamFactoryInterface $streamFactory The PSR-7 stream factory * @param RequestFactoryInterface $requestFactory The PSR-7 request factory * @param HttpClientFactoryInterface $httpClientFactory The HTTP client factory * @param LoggerInterface|null $logger An optional PSR-3 logger */ public function __construct(StreamFactoryInterface $streamFactory, RequestFactoryInterface $requestFactory, HttpClientFactoryInterface $httpClientFactory, ?LoggerInterface $logger = null) { $this->streamFactory = $streamFactory; $this->requestFactory = $requestFactory; $this->httpClientFactory = $httpClientFactory; $this->logger = $logger; } /** * {@inheritdoc} */ public function create(Options $options): TransportInterface { if (null === $options->getDsn()) { return new NullTransport(); } return new HttpTransport( $options, $this->httpClientFactory->create($options), $this->streamFactory, $this->requestFactory, new PayloadSerializer(), $this->logger ); } }