SensioLabs\Consul\Client::__construct PHP Method

__construct() public method

public __construct ( array $options = [], Psr\Log\LoggerInterface $logger = null, Client $client = null )
$options array
$logger Psr\Log\LoggerInterface
$client GuzzleHttp\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();
    }