You are here

public function GeocoderJsonConsumer::__construct in Geocoder autocomplete 8

Service constructor.

Parameters

\GuzzleHttp\ClientInterface $http_client: The http client.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

src/GeocoderJsonConsumer.php, line 36

Class

GeocoderJsonConsumer
Defines the GeocoderJsonConsumer service, for return parse GeoJson.

Namespace

Drupal\geocoder_autocomplete

Code

public function __construct(ClientInterface $http_client, LanguageManagerInterface $language_manager) {
  $this->httpClient = $http_client;
  $this->languageManager = $language_manager;
}