You are here

public function GeocoderHttpAdapter::__construct in Geocoder 8.2

Creates an HTTP adapter.

Parameters

\GuzzleHttp\ClientInterface $httpClient: A Guzzle client object.

File

src/GeocoderHttpAdapter.php, line 33

Class

GeocoderHttpAdapter
Extends AbstractHttpAdapter to use Guzzle.

Namespace

Drupal\geocoder

Code

public function __construct(ClientInterface $httpClient) {
  parent::__construct();
  $this->httpClient = $httpClient;
}