You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \LogicException('You cannot use the "Symfony\Component\HttpClient\Psr18Client" as the "psr/http-client" package is not installed. Try running "composer require psr/http-client".');
27
+
}
28
+
24
29
/**
25
30
* An adapter to turn a Symfony HttpClientInterface into a PSR-18 ClientInterface.
26
31
*
@@ -38,11 +43,23 @@ final class Psr18Client implements ClientInterface
if (null !== $this->responseFactory && null !== $this->streamFactory) {
53
+
return;
54
+
}
55
+
56
+
if (!class_exists(Psr17Factory::class)) {
57
+
thrownew \LogicException('You cannot use the "Symfony\Component\HttpClient\Psr18Client" as no PSR-17 factories have been provided. Try running "composer require nyholm/psr7".');
0 commit comments