Skip to content

Commit 7c5abd1

Browse files
committed
Using guzzle5's new namespace
1 parent e5cb6ec commit 7c5abd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ClientFactory/Guzzle5Factory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Http\HttplugBundle\ClientFactory;
44

55
use GuzzleHttp\Client;
6-
use Http\Adapter\Guzzle5HttpAdapter;
6+
use Http\Adapter\Guzzle5\Client as Adapter;
77

88
/**
99
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
@@ -15,12 +15,12 @@ class Guzzle5Factory
1515
*/
1616
public function createClient(array $config = [])
1717
{
18-
if (!class_exists('Http\Adapter\Guzzle5HttpAdapter')) {
18+
if (!class_exists('Http\Adapter\Guzzle5\Client')) {
1919
throw new \LogicException('To use the Guzzle5 adapter you need to install the "php-http/guzzle5-adapter" package.');
2020
}
2121

2222
$client = new Client($config);
2323

24-
return new Guzzle5HttpAdapter($client);
24+
return new Adapter($client);
2525
}
2626
}

0 commit comments

Comments
 (0)