public function trackEnvUsage($envVar, $withDefault = false, $value, Blueprint $sourceBlueprint = null, $sourceType = null, $sourceKey = null)
{
$type = $withDefault ? 'env_with_default' : 'env';
if (!isset($this->envVars[$type])) {
$this->envVars[$type] = [];
}
if (!isset($this->envVars[$type][$envVar])) {
$this->envVars[$type][$envVar] = ['value' => $value, 'sources' => []];
}
$this->envVars[$type][$envVar]['sources'][] = ['blueprint' => $sourceBlueprint ? $sourceBlueprint->getName() : '', 'type' => $sourceType ? $sourceType : '', 'key' => $sourceKey ? $sourceKey : ''];
}