1 | <?php |
||
7 | class GuzzleFactory |
||
8 | { |
||
9 | /** |
||
10 | * @param string $baseUri |
||
11 | * |
||
12 | * @return Guzzle |
||
13 | * |
||
14 | * @throws NotSupportedException when Guzzle vendor version is not supported. |
||
15 | */ |
||
16 | public static function createGuzzle($baseUri) |
||
31 | |||
32 | /** |
||
33 | * @return int current Guzzle vendor version. |
||
34 | * |
||
35 | * @throws NotSupportedException when Guzzle vendor version is not supported. |
||
36 | */ |
||
37 | public static function detectGuzzleVersion() |
||
53 | |||
54 | /** |
||
55 | * @return bool |
||
56 | */ |
||
57 | private static function supportsGuzzle6() |
||
61 | |||
62 | /** |
||
63 | * @return bool |
||
64 | */ |
||
65 | private static function supportsGuzzle5() |
||
69 | |||
70 | /** |
||
71 | * @return bool |
||
72 | */ |
||
73 | private static function supportsGuzzle3() |
||
77 | } |
||
78 |