You are here

public function LiveWeatherController::__construct in Live Weather 8.2

Same name and namespace in other branches
  1. 8 src/Controller/LiveWeatherController.php \Drupal\live_weather\Controller\LiveWeatherController::__construct()

Constructs a live_weather controller object.

Parameters

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory holding resource settings.

File

src/Controller/LiveWeatherController.php, line 39

Class

LiveWeatherController
Controller for live_weather WOEID settings.

Namespace

Drupal\live_weather\Controller

Code

public function __construct(FormBuilderInterface $form_builder, ConfigFactoryInterface $config_factory) {
  $this->formBuilder = $form_builder;
  $this->configFactory = $config_factory;
}