src/SAREhub/Commons/Misc/EnvironmentHelper.php
public static function getVars(array $schema, string $prefix = ""): array
    {
        $env = [];
        foreach ($schema as $name => $default) {
            $env[$name] = self::getVar($prefix . $name, $default);
        }
        return $env;
    }
public static function getVars(array $schema, string $prefix = ""): array
    {
        $env = [];
        foreach ($schema as $name => $default) {
            $env[$name] = self::getVar($prefix . $name, $default);
        }
        return $env;
    }
public static function getVars ( array $ schema , string $ prefix = "" ) : array { $ env = [ ] ; foreach ( $ schema as $ name => $ default ) { $ env [ $ name ] = self :: getVar ( $ prefix . $ name , $ default ) ; } return $ env ; }
Returns values of environment variables defined in schema parameter
@param array $schema Format: ["variableName" => defaultValue]
@param string $prefix Its added to variableName when getting value from env
@return array ["variableName" => valueFromEnv|defaultValue]
Returns values of environment variables defined in schema parameter