for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nopolabs\Yabot\Guzzle;
use GuzzleHttp\Client;
use GuzzleHttp\Handler\CurlMultiHandler;
use GuzzleHttp\HandlerStack;
use React\EventLoop\LoopInterface;
class GuzzleFactory
{
static public function newGuzzle(LoopInterface $eventLoop, array $config) : Guzzle
static
$handler = new CurlMultiHandler();
$config['handler'] = HandlerStack::create($handler);
$client = new Client($config);
return new Guzzle($client, $handler, $eventLoop);
}