File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
- Client factories for Buzz.
8
8
9
+ ### Changed
10
+
11
+ - Guzzle 6 client is now created according to the Httplug specifications with automated minimal behaviour.
12
+ Make sure you configure the Httplug plugins as needed,
13
+ for example if you want to get exceptions for failure HTTP status codes.
14
+
9
15
10
16
### Fixed
11
17
Original file line number Diff line number Diff line change 2
2
3
3
namespace Http \HttplugBundle \ClientFactory ;
4
4
5
- use GuzzleHttp \Client ;
6
- use Http \Adapter \Guzzle6 \Client as Adapter ;
5
+ use Http \Adapter \Guzzle6 \Client ;
7
6
8
7
/**
9
8
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
@@ -19,8 +18,6 @@ public function createClient(array $config = [])
19
18
throw new \LogicException ('To use the Guzzle6 adapter you need to install the "php-http/guzzle6-adapter" package. ' );
20
19
}
21
20
22
- $ client = new Client ($ config );
23
-
24
- return new Adapter ($ client );
21
+ return Client::createWithConfig ($ config );
25
22
}
26
23
}
Original file line number Diff line number Diff line change 27
27
"phpunit/phpunit" : " ^4.5" ,
28
28
"php-http/curl-client" : " ^1.0" ,
29
29
"php-http/socket-client" : " ^1.0" ,
30
- "php-http/guzzle6-adapter" : " ^1.0 " ,
30
+ "php-http/guzzle6-adapter" : " ^1.1 " ,
31
31
"php-http/react-adapter" : " ^0.1" ,
32
32
"php-http/buzz-adapter" : " ^0.1" ,
33
33
"php-http/message" : " ^1.0" ,
37
37
"puli/symfony-bundle" : " ^1.0@beta"
38
38
},
39
39
"conflict" : {
40
+ "php-http/guzzle6-adapter" : " <1.1" ,
40
41
"puli/composer-plugin" : " <1.0.0-beta9" ,
41
42
"puli/symfony-bundle" : " <=1.0.0-beta7"
42
43
},
You can’t perform that action at this time.
0 commit comments