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

Commit 65fd352

Browse files
committed
Remove client-common dependency
1 parent 306b113 commit 65fd352

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"require": {
1818
"php": ">=5.5.0",
1919
"php-http/httplug": "^1.0",
20-
"php-http/client-common": "^0.2",
2120
"guzzlehttp/guzzle": "^6.0"
2221
},
2322
"require-dev": {

src/Client.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
*/
1919
class Client implements HttpClient, HttpAsyncClient
2020
{
21-
use HttpClientEmulator;
22-
2321
/**
2422
* @var ClientInterface
2523
*/
@@ -38,6 +36,16 @@ public function __construct(ClientInterface $client = null)
3836
$this->client = $client;
3937
}
4038

39+
/**
40+
* {@inheritdoc}
41+
*/
42+
public function sendRequest(RequestInterface $request)
43+
{
44+
$promise = $this->sendAsyncRequest($request);
45+
46+
return $promise->wait();
47+
}
48+
4149
/**
4250
* {@inheritdoc}
4351
*/

0 commit comments

Comments
 (0)