1 | <?php |
||
13 | class GuzzleFactory |
||
14 | { |
||
15 | private $eventLoop; |
||
16 | private $logger; |
||
17 | |||
18 | public function __construct(LoopInterface $eventLoop, LoggerInterface $logger = null) |
||
23 | |||
24 | public function newClient(array $config) : Client |
||
32 | |||
33 | /** |
||
34 | * Like HandlerStack::create() except no http_errors |
||
35 | * @see http://docs.guzzlephp.org/en/stable/request-options.html#http-errors |
||
36 | * |
||
37 | * @param CurlMultiHandler $handler |
||
38 | * @return HandlerStack |
||
39 | */ |
||
40 | public function createHandlerStack(CurlMultiHandler $handler) : HandlerStack |
||
49 | } |