src/SAREhub/Commons/Misc/EnvironmentHelper.php
public static function getRequiredVar(string $name)
    {
        $value = getenv($name);
        if ($value === false) {
            throw EnvVarNotFoundException::create($name);
        }
        return $value;
    }
public static function getRequiredVar(string $name)
    {
        $value = getenv($name);
        if ($value === false) {
            throw EnvVarNotFoundException::create($name);
        }
        return $value;
    }
public static function getRequiredVar ( string $ name ) { $ value = getenv ( $ name ) ; if ( $ value === false ) { throw EnvVarNotFoundException :: create ( $ name ) ; } return $ value ; }
Returns value of environment variable or throws Exception when is not defined
@param string $name
@return mixed value from env
@throws EnvVarNotFoundException
Returns value of environment variable or throws Exception when is not defined