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 66
77- Client factories for Buzz.
88
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+
915
1016## 1.0.0 - 2016-03-04
1117
Original file line number Diff line number Diff line change 22
33namespace Http \HttplugBundle \ClientFactory ;
44
5- use GuzzleHttp \Client ;
6- use Http \Adapter \Guzzle6 \Client as Adapter ;
5+ use Http \Adapter \Guzzle6 \Client ;
76
87/**
98 * @author Tobias Nyholm <[email protected] > @@ -19,8 +18,6 @@ public function createClient(array $config = [])
1918 throw new \LogicException ('To use the Guzzle6 adapter you need to install the "php-http/guzzle6-adapter" package. ' );
2019 }
2120
22- $ client = new Client ($ config );
23-
24- return new Adapter ($ client );
21+ return Client::createWithConfig ($ config );
2522 }
2623}
Original file line number Diff line number Diff line change 2727 "phpunit/phpunit" : " ^4.5" ,
2828 "php-http/curl-client" : " ^1.0" ,
2929 "php-http/socket-client" : " ^1.0" ,
30- "php-http/guzzle6-adapter" : " ^1.0 " ,
30+ "php-http/guzzle6-adapter" : " ^1.1 " ,
3131 "php-http/react-adapter" : " ^0.1" ,
3232 "php-http/buzz-adapter" : " ^0.1" ,
3333 "php-http/message" : " ^1.0" ,
3737 "puli/symfony-bundle" : " ^1.0@beta"
3838 },
3939 "conflict" : {
40+ "php-http/guzzle6-adapter" : " <1.1" ,
4041 "puli/composer-plugin" : " <1.0.0-beta9" ,
4142 "puli/symfony-bundle" : " <=1.0.0-beta7"
4243 },
You can’t perform that action at this time.
0 commit comments