3 namespace Cli\Services;
7 class EnvironmentLoader
9 public static function load(string $rootPath): array
11 $dotenv = Dotenv::createArrayBacked($rootPath);
12 return $dotenv->safeLoad();
15 public static function loadMergedWithCurrentEnv(string $rootPath): array
17 $env = static::load($rootPath);
18 foreach ($_SERVER as $key => $val) {