nopolabs/react-aware-guzzle-client

An implementation of GuzzleHttp\Handler\CurlFactoryInterface that plays nicely with React

dev-master 2019-07-12 18:34 UTC

This package is auto-updated.

Last update: 2024-04-13 04:54:05 UTC


README

Build Status Code Climate Scrutinizer Code Quality License Latest Stable Version

An implementation of GuzzleHttp\Handler\CurlFactoryInterface that plays nicely with React.

public function newClient(
        LoopInterface $eventLoop,
        array $config = [],
        CurlFactory $curlFactory = null,
        LoggerInterface $logger = null) : Client
{
    $clientFactory = new ReactAwareGuzzleClientFactory();
    return $clientFactory->createGuzzleClient($eventLoop, $config, $curlFactory, $logger);
}