public __construct ( array $options = [], Psr\Log\LoggerInterface $logger = null, |
||
$options | array | |
$logger | Psr\Log\LoggerInterface | |
$client |
public function __construct(array $options = array(), LoggerInterface $logger = null, GuzzleClient $client = null)
{
$options = array_replace(array('base_uri' => 'http://127.0.0.1:8500', 'http_errors' => false), $options);
$this->client = $client ?: new GuzzleClient($options);
$this->logger = $logger ?: new NullLogger();
}