$psr17Factory =
new NyholmPsr17Factory();
} else { throw new \
LogicException('You cannot use the "Symfony\Component\HttpClient\HttplugClient" as no PSR-17 factories have been provided. Try running "composer require php-http/discovery psr/http-factory-implementation:*".'
);
} $responseFactory ??=
$psr17Factory;
$streamFactory ??=
$psr17Factory;
} $this->responseFactory =
$responseFactory;
$this->streamFactory =
$streamFactory;
$this->waitLoop =
new HttplugWaitLoop($this->client,
$this->promisePool,
$this->responseFactory,
$this->streamFactory
);
} public function withOptions(array
$options):
static { $clone =
clone $this;
$clone->client =
$clone->client->
withOptions($options);
return $clone;
} public function sendRequest(RequestInterface
$request): Psr7ResponseInterface
{