protected function getenv($key)
    {
        $value = getenv($key);
        if ($value === false) {
            if (isset($_ENV[$key])) {
                $value = $_ENV[$key];
            }
            if (isset($_SERVER[$key])) {
                $value = $_SERVER[$key];
            }
        }
        return $value;
    }