优先从开发环境中获取配置项

@param   string      $key    配置项
@return  mixed|null
496160
public static function getEnv($key = '')
    {
        if (self::$env_setting === null) {
            return self::get($key);
        }

        $arr = explode('.', $key);

        $value = null;
        foreach ($arr as $kv) {
            if (empty($kv)) {
                $value = null;
                break;
            }
            if ($value === null) {
                if (isset(self::$env_setting->$kv)) {
                    $value =  self::$env_setting->$kv;
                    continue;
                }
                $value = null;
                break;
            } else {
                if (isset($value->$kv)) {
                    $value =  $value->$kv;
                    continue;
                }
                $value = null;
                break;
            }
        }

        if ($value === null) {
            return self::get($key);
        }
        return $value;
    }
467321
public function &__get($key)
    {
        if (!isset($this->$key)) {
            $this->$key = null;
        }

        return $this->$key;
    }
44150
public function getByKey($key)
    {
        $storage = $this->getStorage();

        return isset($storage[$key]) ? $storage[$key] : null;
    }
476434
public function value($key)
    {
        if (isset($this->data[$key])) {
            return $this->data[$key];
        }

        return null;
    }
261462
protected function get($key)
    {
        $this->checkForNonEmptyKey($key);
        if (!$this->settingsHaveBeenRetrieved) {
            $this->retrieveSettings();
        }
        if (!isset($this->cachedSettings[$key])) {
            return null;
        }

        return $this->cachedSettings[$key];
    }
926572
public function get($key)
    {
        $this->assertOpened();
        $key = (string) $key;
        if (isset($this->contents[$key])) {
            return $this->contents[$key];
        }
        return null;
    }
650115
public function retrieve(string $key)
    {
        $token = null;

        $storageInstance = $this->getRepository();

        $token = $storageInstance->{$key}?? null;

        return $token;
    }
29661
public function GetCache($key)
    {
		return (array_key_exists($key, $this->_cache) ? $this->_cache[$key] : null);
	}
141863
public function find(string $key)
    {
        $founded = array_key_exists($key, $this->map);

        if ($founded === false) {
            return null;
        }

        return $this->map[$key];
    }
1253725
public function get($key)
    {
        if (!$this->isEnabled()) {
            return null;
        }

        $value = apc_fetch($this->prefix() . $key);

        return false === $value ? null : unserialize($value);
    }
380311
public static function get(string $key = null)
    {
        self::set();

        if (empty($key)) {
            return self::$config;
        }

        $keys  = explode('.', $key);
        $value = self::$config;

        foreach ($keys as $key) {
            if ( ! isset($value[$key])) {
                return null;
            }

            $value = $value[$key];
        }

        return $value;
    }
48461
public function &__get($key)
    {
        $result = null;

        if ($key == 'name') {
            $result = $this->_name;
        }

        if ($key == 'expire') {
            $result = $this->_expire;
        }

        if ($key == 'path') {
            $result = $this->_path;
        }

        return $result;
    }
201777
public function get($key)
    {
        $allowed = array_diff(array_keys(get_class_vars(get_class($this))), $this->_hidden);
        if (empty($allowed) || !empty($allowed) && in_array($key, $allowed)) {
            if (method_exists($this, 'get' . ucfirst($key))) {
                return call_user_func_array([$this, 'get' . ucfirst($key)], [$key]);
            }

            return $this->{$key};
        }

        return null;
    }
1094684
public static function get($key)
    {
        return isset(self::$config[$key]) ? self::$config[$key] : null;
    }
1207279
public function findByKey(string $key) {
        if (!$this->root) {
            return null;
        }

        return $this->root->findByKey($key);
    }
1077124
public function get(string $key)
    {
        $slug = $this->splitKey($key);

        if (is_string($slug)) {
            if (isset($this[$slug])) {
                return $this[$slug];
            }
            return null;
        }

        $array = $this->toArray();

        foreach ($slug as $search) {
            if (isset($array[$search])) {
                $array = $array[$search];
            } else {
                return;
            }
        }

        return $array;
    }
713835
public function getValue($key)
    {
        if (!isset($this->values[$key])) {
            return null;
        }
        return $this->values[$key];
    }