1 | <?php |
||
7 | class HttpClient implements HttpClientInterface |
||
8 | { |
||
9 | protected $guzzle; |
||
10 | |||
11 | /** |
||
12 | * Create an instance of HttpClient. |
||
13 | */ |
||
14 | public function __construct(Guzzle $guzzle = null) |
||
18 | |||
19 | /** |
||
20 | * Get Guzzle client instance. |
||
21 | * |
||
22 | * @return \GuzzleHttp\Client |
||
23 | */ |
||
24 | public function getGuzzle() |
||
28 | |||
29 | /** |
||
30 | * {@inheritDoc} |
||
31 | */ |
||
32 | public function request($method, $uri, array $options = []) |
||
36 | |||
37 | /** |
||
38 | * {@inheritDoc} |
||
39 | */ |
||
40 | public function post($uri, array $options = []) |
||
44 | } |
||
45 |