Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 3837202

Browse files
committed
Updates dependecies
1 parent 479c110 commit 3837202

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"require": {
1818
"php": ">=5.4",
19-
"php-http/adapter-common": "dev-master",
19+
"php-http/adapter": "dev-internal_separation",
2020
"php-http/common": "dev-master",
2121
"guzzlehttp/guzzle": "~5.1",
2222
"guzzlehttp/ringphp": "^1.0.8@dev"

src/Guzzle5HttpAdapter.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
use GuzzleHttp\Message\RequestInterface as GuzzleRequest;
1818
use GuzzleHttp\Message\ResponseInterface as GuzzleResponse;
1919
use GuzzleHttp\Pool;
20-
use Http\Adapter\Common\Exception\HttpAdapterException;
21-
use Http\Adapter\Common\Exception\MultiHttpAdapterException;
2220
use Http\Common\Message\MessageFactoryGuesser;
2321
use Http\Message\MessageFactory;
2422
use Http\Message\MessageFactoryAware;
@@ -94,7 +92,7 @@ public function sendRequests(array $requests, array $options = [])
9492
}
9593

9694
if (count($exceptions) > 0) {
97-
throw new MultiHttpAdapterException($exceptions, $responses);
95+
throw new Exception\MultiHttpAdapterException($exceptions, $responses);
9896
}
9997

10098
return $responses;
@@ -155,13 +153,13 @@ private function createResponse(GuzzleResponse $response)
155153
*
156154
* @param RequestException $exception
157155
*
158-
* @return HttpAdapterException
156+
* @return Exception\HttpAdapterException
159157
*/
160158
private function createException(
161159
RequestException $exception,
162160
RequestInterface $originalRequest
163161
) {
164-
$adapterException = new HttpAdapterException(
162+
$adapterException = new Exception\HttpAdapterException(
165163
$exception->getMessage(),
166164
0,
167165
$exception

0 commit comments

Comments
 (0)