We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5cb6ec commit 7c5abd1Copy full SHA for 7c5abd1
ClientFactory/Guzzle5Factory.php
@@ -3,7 +3,7 @@
3
namespace Http\HttplugBundle\ClientFactory;
4
5
use GuzzleHttp\Client;
6
-use Http\Adapter\Guzzle5HttpAdapter;
+use Http\Adapter\Guzzle5\Client as Adapter;
7
8
/**
9
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
@@ -15,12 +15,12 @@ class Guzzle5Factory
15
*/
16
public function createClient(array $config = [])
17
{
18
- if (!class_exists('Http\Adapter\Guzzle5HttpAdapter')) {
+ if (!class_exists('Http\Adapter\Guzzle5\Client')) {
19
throw new \LogicException('To use the Guzzle5 adapter you need to install the "php-http/guzzle5-adapter" package.');
20
}
21
22
$client = new Client($config);
23
24
- return new Guzzle5HttpAdapter($client);
+ return new Adapter($client);
25
26
0 commit comments