1 | <?php |
||
18 | class GuzzleClientFactory |
||
19 | { |
||
20 | use LoggerAwareTrait; |
||
21 | |||
22 | /** |
||
23 | * @var PlatformConfigInterface |
||
24 | */ |
||
25 | private $platform; |
||
26 | |||
27 | /** |
||
28 | * HttpClientFactory constructor. |
||
29 | * |
||
30 | * @param PlatformConfigInterface $platform |
||
31 | */ |
||
32 | 7 | public function __construct(PlatformConfigInterface $platform) |
|
36 | |||
37 | /** |
||
38 | * Create a static instance (LSB) of HttpClientFactory. |
||
39 | * |
||
40 | * @param PlatformConfigInterface $platform |
||
41 | * |
||
42 | * @return GuzzleClientFactory |
||
43 | */ |
||
44 | 7 | public static function build(PlatformConfigInterface $platform) |
|
48 | |||
49 | /** |
||
50 | * Create and configure a http curl client. |
||
51 | * |
||
52 | * @param array $settings additional settings |
||
53 | * |
||
54 | * @return Client |
||
55 | */ |
||
56 | 7 | public function create(array $settings = []) |
|
79 | |||
80 | /** |
||
81 | * Returns this LoggerInterface. |
||
82 | * |
||
83 | * @return LoggerInterface |
||
84 | */ |
||
85 | 7 | public function getLogger() |
|
89 | } |
||
90 |