1 | <?php |
||
8 | class HttpClient implements HttpClientInterface |
||
9 | { |
||
10 | protected $guzzle; |
||
11 | |||
12 | /** |
||
13 | * Create an instance of HttpClient. |
||
14 | */ |
||
15 | 5 | public function __construct(Guzzle $guzzle = null) |
|
19 | |||
20 | /** |
||
21 | * Get Guzzle client instance. |
||
22 | * |
||
23 | * @return \GuzzleHttp\Client |
||
24 | */ |
||
25 | 1 | public function getGuzzle() |
|
29 | |||
30 | /** |
||
31 | * {@inheritDoc} |
||
32 | */ |
||
33 | 1 | public function request($method, $uri, array $options = []) |
|
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
40 | */ |
||
41 | 1 | public function send(RequestInterface $request) |
|
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | */ |
||
53 | 1 | public function post($uri, array $options = []) |
|
57 | } |
||
58 |