You are here

public function LiveWeather::__construct in Live Weather 8

Same name and namespace in other branches
  1. 8.2 src/LiveWeather.php \Drupal\live_weather\LiveWeather::__construct()

Constructs a location form object.

Parameters

\GuzzleHttp\ClientInterface $http_client: The Guzzle HTTP client.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

src/LiveWeather.php, line 42
Contains \Drupal\live_weather\LiveWeather.

Class

LiveWeather
Live weather.

Namespace

Drupal\live_weather

Code

public function __construct(ClientInterface $http_client, LoggerInterface $logger) {
  $this->httpClient = $http_client;
  $this->logger = $logger;
}