get blog config
@param  string $key
@return mixed
496800
public function env(string $key)
    {
        $result = null;
        $break  = false;
        $keys   = explode('.', $key);
        $env    = $this->config->env;
        foreach ($keys as $key) {
            if (isset($env[$key])) {
                $env = $env[$key];
            } else {
                $break = true;
                break;
            }
        }
        if (!$break) {
            $result = $env;
        }
        return $result;
    }
1310949
public function getConfig(string $key)
    {
        //使用回调函数
        if (self::$config instanceof \Closure) {
            return call_user_func(self::$config, $key);
        } //直接注册数组
        elseif (is_array(self::$config)) {
            if (preg_match('@^(\w+)\.(.+)$@', $key, $m)) {
                $name = trim($m[1]);
                $key = trim($m[2]);
                if (isset(self::$config[$name]) && isset(self::$config[$name][$key])) {
                    return self::$config[$name][$key];
                }
                return null;
            }
            return isset(self::$config[$key]) ? self::$config[$key] : null;
        } //使用实例
        elseif (self::$config != null && method_exists(self::$config, 'get')) {
            return self::$config->get($key);
        }
        return null;
    }
430669
protected function getConfiguration($key = null)
    {
        return $key ? static::$config[$this->getProtocol()][$key] : static::$config[$this->getProtocol()];
    }
1167696
public function getConfigurationValue($key)
    {
        $configuration = $this->getConfiguration();

        $pathParts = explode(self::DELIMITER, $key);
        foreach ($pathParts as $pathPart) {
            if (isset($configuration[ucfirst($pathPart)]) === true) {
                $configuration = $configuration[ucfirst($pathPart)];
            } else {
                $configuration = null;
            }
        }

        return $configuration;
    }
1033808
public function get($key)
    {
        $yaml = $this->getContent();

        return isset($yaml['parameters']) && isset($yaml['parameters'][$key]) ? $yaml['parameters'][$key] : '';
    }
1296308
protected static function _getConfigByKey($key) {
		$dbConfig = self::_getEngine()->get($key);
		$fileConfig = Configure::read($key);
		if (!is_null($fileConfig)) {
			$dbConfig = Hash::mergeDiff((array)$dbConfig, $fileConfig);
		}

		return $dbConfig;
	}
870055
protected function get_config_value( $key, $default = null ) {
		return $this->app->utility->array_get( $this->get_configs(), $key, $default );
	}
1353874
public static function get($key = '')
    {
        if ($key === '') {
            return null;
        }

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

        $config_file = $arr[0];
        if (! isset(self::$settings[$config_file])) {
            self::addConfigFromFile($config_file);
        }

        $config_key_first = isset($arr[1]) ? $arr[1] : '';
        if ($config_key_first === '') {
            return null;
        }

        $value = isset(self::$settings[$config_file]->$config_key_first)
            ? self::$settings[$config_file]->$config_key_first : null;

        if (is_null($value)) {
            return null;
        }

        for ($i = 2; $i < count($arr); $i++) {
            $config_key = $arr[$i];
            if ($config_key == '') {
                return null;
            }
            $value = isset($value->$config_key) ? $value->$config_key : null;
            if (is_null($value)) {
                return null;
            }
        }

        return $value;
    }
1036062
public static function getConfigData($key)
    {
        if (method_exists('\PHP_CodeSniffer\Config', 'getConfigData')) {
            // PHPCS 3.x.
            return \PHP_CodeSniffer\Config::getConfigData($key);
        } else {
            // PHPCS 2.x.
            return \PHP_CodeSniffer::getConfigData($key);
        }
    }
738250
public function get(string $key)
    {
        return isset($this->_configValues[$key])
            ? $this->_configValues[$key]
            : null;
    }
1119808
public function get(string $key = null)
    {
        $result = (null !== $key)
            ? $this->_config[$key] ?? null
            : $this->_config;

        return $result;
    }
463440
protected function fetchConfig($key)
	{
		$config = $this->config[ $key ];

		if (isset($this->configOverride[ $this->renderMode ][ $key ])) {
			$override = $this->configOverride[ $this->renderMode ][ $key ];
			$config = array_merge($config, $override);
		}

		return $config;
	}
27721
static function get($key, $default = null) {
    if (isset(Config::$values[$key])) {
      return Config::$values[$key];
    } else {
      if (Config::isEmpty()) {
        throw new ConfigException("Site configuration has not been initialised for '$key'");
      } else if ($default !== null) {
        return $default;
      } else {
        throw new ConfigException("No site configuration value found for '$key'");
      }
    }
  }
538339
public function config($key)
    {
        $splitKey = explode('.', $key);

        $moduleConfig = include __DIR__.'/../PublishedAssets/Config/'.$splitKey[0].'.php';

        $strippedKey = preg_replace('/'.$splitKey[1].'./', '', preg_replace('/'.$splitKey[0].'./', '', $key, 1), 1);

        return $moduleConfig[$strippedKey];
    }
425122
public function getProfileConfig($key)
	{
		// If no profile setted load the config.php
		if (empty($this->_profile)) {
			return $this->_configs->get('bbcoder::profile.default.'.$key);
		}

		// Check if the profile overwrites the default config.
		if ($this->_configs->has('bbcoder::profile.'.$this->_profile.'.'.$key)) {
			return $this->_configs->get('bbcoder::profile.'.$this->_profile.'.'.$key);
		}

		return $this->_configs->get('bbcoder::profile.default.'.$key);
	}
416849
protected function getConfig($key, $default = null)
    {
        $config = $this->getApp()->make('config');

        return $config->get($key, $default);
    }
1027348
public function get($key)
    {
        if (isset($this->conf[$key])) {
            return (string) $this->conf[$key];
        }

        return null;
    }