public function SensorDataController::__construct in farmOS 2.x
SensorDataController constructor.
Parameters
\Drupal\data_stream\DataStreamTypeManager $data_stream_type_manager: The data stream type manager.
File
- modules/
asset/ sensor/ src/ Controller/ SensorDataController.php, line 36
Class
- SensorDataController
- Handles requests for basic data streams associated with a sensor.
Namespace
Drupal\farm_sensor\ControllerCode
public function __construct(DataStreamTypeManager $data_stream_type_manager) {
$this->basicDataStream = $data_stream_type_manager
->createInstance('basic');
}