Skip to content

Commit 3e11ae7

Browse files
authored
fix: remove deprecated environment retrieval method (#98)
1 parent 06bcfdc commit 3e11ae7

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/Console/Command/System/CheckCommand.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -763,20 +763,6 @@ private function getSystemEnvironmentValue(string $name): ?string
763763
}
764764
}
765765

766-
// Use Environment class if available (Magento 2.3+)
767-
try {
768-
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
769-
$env = $objectManager->get(\Magento\Framework\App\Environment::class);
770-
if (method_exists($env, 'getEnv')) {
771-
$value = $env->getEnv($name);
772-
if ($value !== false && $value !== null) {
773-
return $value;
774-
}
775-
}
776-
} catch (\Exception $e) {
777-
// Continue with other methods
778-
}
779-
780766
return null;
781767
}
782768
}

0 commit comments

Comments
 (0)