You are here

public function ForceRunController::__construct in Monitoring 8

Constructs a \Drupal\monitoring\Form\SensorSettingsForm object.

Parameters

\Drupal\monitoring\SensorRunner $sensor_runner: The sensor runner service.

\Drupal\monitoring\Sensor\SensorManager $sensor_manager: The sensor manager service.

File

src/Controller/ForceRunController.php, line 35

Class

ForceRunController

Namespace

Drupal\monitoring\Controller

Code

public function __construct(SensorRunner $sensor_runner, SensorManager $sensor_manager) {
  $this->sensorManager = $sensor_manager;
  $this->sensorRunner = $sensor_runner;
}