1 | <?php |
||
16 | class Guzzle5ApiClientFactory extends AbstractApiClientFactory |
||
17 | { |
||
18 | /** |
||
19 | * Use the Guzzle5-specific API client class. |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | 3 | protected function getApiClientClass() |
|
27 | |||
28 | 3 | protected function getGuzzleBaseUriOptionKey() |
|
32 | |||
33 | /** |
||
34 | * Instantiate a TokenSubscriber instance with a TokenManager. |
||
35 | * |
||
36 | * @param TokenManager $tokenManager |
||
37 | * |
||
38 | * @return TokenSubscriber |
||
39 | */ |
||
40 | 6 | public function createTokenSubscriber(TokenManager $tokenManager) |
|
44 | |||
45 | /** |
||
46 | * Method to instantiate a HTTP client. |
||
47 | * |
||
48 | * @param string $baseUri |
||
49 | * @param array $subscribers |
||
50 | * @param array $options |
||
51 | * |
||
52 | * @return ClientInterface |
||
53 | */ |
||
54 | 3 | public function createHttpClient($baseUri, array $subscribers = [], array $options = []) |
|
63 | } |
||
64 |