public function WundergroundWeatherManager::__construct in Wunderground weather 8
WundergroundWeatherTools constructor.
Parameters
\Drupal\Core\Config\ConfigFactory $config_factory: Defines the configuration object factory.
\GuzzleHttp\Client $http_client: An client to make http requests.
File
- src/
WundergroundWeatherManager.php, line 37 - Contains Drupal\wunderground_weather\WundergroundWeatherManager.
Class
- WundergroundWeatherManager
- Methods to make an API call and tool to handle the output.
Namespace
Drupal\wunderground_weatherCode
public function __construct(ConfigFactory $config_factory, Client $http_client) {
$this->configFactory = $config_factory;
$this->httpClient = $http_client;
}