public function Telemetry::__construct in Lightning Core 8.3
Same name and namespace in other branches
- 8.4 modules/acquia_telemetry/src/Telemetry.php \Drupal\acquia_telemetry\Telemetry::__construct()
Constructs a telemetry object.
Parameters
\Drupal\Core\Extension\ModuleExtensionList $module_list: The extension.list.module service.
\GuzzleHttp\ClientInterface $http_client: The HTTP client.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config.factory service.
\Drupal\Core\State\StateInterface $state: The state service.
string $app_root: The Drupal application root.
File
- modules/
acquia_telemetry/ src/ Telemetry.php, line 87
Class
- Telemetry
- Telemetry service.
Namespace
Drupal\acquia_telemetryCode
public function __construct(ModuleExtensionList $module_list, ClientInterface $http_client, ConfigFactoryInterface $config_factory, StateInterface $state, $app_root) {
$this->moduleList = $module_list;
$this->httpClient = $http_client;
$this->configFactory = $config_factory;
$this->state = $state;
$this->root = $app_root;
}