We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06bcfdc commit 3e11ae7Copy full SHA for 3e11ae7
1 file changed
src/Console/Command/System/CheckCommand.php
@@ -763,20 +763,6 @@ private function getSystemEnvironmentValue(string $name): ?string
763
}
764
765
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
-
780
return null;
781
782
0 commit comments