You are here

public static function LiveWeather::create in Live Weather 8.2

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

File

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

Class

LiveWeather
Live weather.

Namespace

Drupal\live_weather

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('http_client'), $container
    ->get('logger.factory'));
}