1 | <?php |
||
15 | class Client extends GuzzleClient |
||
16 | { |
||
17 | /** |
||
18 | * @var Config |
||
19 | */ |
||
20 | protected $config; |
||
21 | |||
22 | /** |
||
23 | * Client constructor. |
||
24 | * @param array $config |
||
25 | */ |
||
26 | 8 | public function __construct($config = []) |
|
40 | |||
41 | /** |
||
42 | * @param Config $config |
||
43 | */ |
||
44 | 8 | protected function attachErrorSubscriber(Config $config) |
|
48 | |||
49 | /** |
||
50 | * @param Config $config |
||
51 | */ |
||
52 | 8 | protected function attachLogSubscriber(Config $config) |
|
59 | |||
60 | /** |
||
61 | * @return Config |
||
62 | */ |
||
63 | 3 | public function getConfig() |
|
67 | |||
68 | /** |
||
69 | * @param array $config |
||
70 | */ |
||
71 | 2 | public function changeAuthOptions(array $config) |
|
87 | |||
88 | /** |
||
89 | * @param string $prefix |
||
90 | * @throws FailedAuthException |
||
91 | */ |
||
92 | 1 | public function connectionTest($prefix = '/') |
|
100 | } |
||
101 |