public function MonitoringCommands::__construct in Monitoring 8
MonitoringCommands constructor.
Parameters
\Drupal\monitoring\Sensor\SensorManager $sensor_manager: The Sensor Manager service.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The Date formatter service.
File
- src/
Commands/ MonitoringCommands.php, line 63
Class
- MonitoringCommands
- A Drush commandfile for the Monitoring module.
Namespace
Drupal\monitoring\CommandsCode
public function __construct(SensorManager $sensor_manager, DateFormatterInterface $date_formatter) {
parent::__construct();
$this->sensorManager = $sensor_manager;
$this->dateFormatter = $date_formatter;
}