Get the specified configuration value.

@param  string $key

@return mixed
771684
public function get(string $key)
    {
        if ($key === '' || $key === '.') {
            return null;
        }

        if (isset($this->items[$key])) {
            return $this->items[$key];
        }

        if (\array_key_exists($key, $this->cache)) {
            return $this->cache[$key];
        }

        [$space] = $split = \explode('.', $key, 2);

        if (!isset($this->items[$space])) {
            if (($found = $this->load($space)) !== null) {
                $this->items[$space] = $found;

                if (isset($split[1])) {
                    $found = Arrays::get($found, $split[1]);
                }
            }
        } else {
            $found = Arrays::get($this->items, $key);
        }

        return $this->cache[$key] = $found;
    }
1002567
public function get($key)
    {
        $value = $this->apc->get($this->prefix.$key);

        if ($value !== false) {
            return $value;
        }
    }
545316
public function get($key, $default = null)
    {
        $result = $this->load($key);
        return Arr::get(static::$configs[$result[0]], $result[1], $default);
    }
692027
public function get($key)
	{
		$resolved = false;
		$value = $this->getByKey($key, $this->data, $resolved);
		
		if($resolved)
		{
			return $value;
		}
		
		if(func_num_args() > 1)
		{
			return func_get_arg(1);
		}
		
		throw new \OutOfBoundsException('Configuration setting not found: "' . $key . '"');
	}
966307
final protected function getArrayValue(string $key): array
    {
        $value = $this->getConfigValue($key);
        if (!$value || !\is_array($value)) {
            return [];
        }

        return $value;
    }
388761
public function getConfiguration($key = null)
	{
		if(is_null($key))
		{
			return $this->configuration + $this->core['configuration'];
		}

		$configuration = $this->configuration + $this->core['configuration'];

		if(array_key_exists($key, $configuration))
		{
			return $configuration[$key];
		}

		return null;
	}
588547
public static function get($key)
    {
        $config = json_decode(file_get_contents(PATH . '/app/config.json'), true);

        if (! array_key_exists($key, $config)) {
            throw new ConfigItemNotSetException($key);
        }

        return $config[$key];
    }
121808
public static function getConfig($key = '')
    {
        if (empty($key)) {
            return self::$config;
        } else {
            $keys = str_replace('\\', '/', $key);
            $explodeKey = explode('/', $keys);
            if (array_key_exists($explodeKey[0], self::$config)) {
                if (isset($explodeKey[1]) && isset(self::$config[$explodeKey[0]][$explodeKey[1]])) {
                    if (isset($explodeKey[2]) && isset(self::$config[$explodeKey[0]][$explodeKey[1]][$explodeKey[2]])) {
                        if (isset($explodeKey[3]) && isset(self::$config[$explodeKey[0]][$explodeKey[1]][$explodeKey[2]][$explodeKey[3]])) {
                            if (isset($explodeKey[4]) && isset(self::$config[$explodeKey[0]][$explodeKey[1]][$explodeKey[2]][$explodeKey[3]][$explodeKey[4]])) {
                                if (isset($explodeKey[5]) && isset(self::$config[$explodeKey[0]][$explodeKey[1]][$explodeKey[2]][$explodeKey[3]][$explodeKey[4]][$explodeKey[5]])) {
                                    return self::$config[$explodeKey[0]][$explodeKey[1]][$explodeKey[2]][$explodeKey[3]][$explodeKey[4]][$explodeKey[5]];
                                } else {
                                    return self::$config[$explodeKey[0]][$explodeKey[1]][$explodeKey[2]][$explodeKey[3]][$explodeKey[4]];
                                }
                            } else {
                                return self::$config[$explodeKey[0]][$explodeKey[1]][$explodeKey[2]][$explodeKey[3]];
                            }
                        } else {
                            return self::$config[$explodeKey[0]][$explodeKey[1]][$explodeKey[2]];
                        }
                    } else {
                        return self::$config[$explodeKey[0]][$explodeKey[1]];
                    }
                } else {
                    return self::$config[$explodeKey[0]];
                }
            }
        }
    }
737838
public function getConfig(string $key = null)
    {
        if ($key) {
            return $this->getValue($key);
        }

        return $this->config;
    }
738250
public function get(string $key)
    {
        return isset($this->_configValues[$key])
            ? $this->_configValues[$key]
            : null;
    }
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;
	}
751984
public function get(string $key)
    {
        $result = null;
        if (isset($this->configuration[$key])) {
            $result = (string)$this->configuration[$key];
        } elseif (isset($GLOBALS['TSFE']->config['config']['tx_staticfilecache.'][$key])) {
            $result = (string)$GLOBALS['TSFE']->config['config']['tx_staticfilecache.'][$key];
        }

        return $result;
    }
181290
protected function getOptionOrConfig($key)
    {
        if ($option = $this->option($key)) {
            return $option;
        }

        return $this->config->get("laroute.{$key}");
    }
1040360
public function getRequired(string $key)
    {
        if (!isset($this->values[$key])) {
            throw new \RuntimeException(
                "the required config value '$key' was not found"
            );
        }
        return $this->values[$key];
    }
239708
public function getConfig(string $key, ?Configuration $default = null): Configuration
    {
        $resolved = false;
        $value = $this->getByKey($key, $this->data, $resolved);
        
        if ($resolved) {
            return new static($value);
        }
        
        return $default ?? new static();
    }
430669
protected function getConfiguration($key = null)
    {
        return $key ? static::$config[$this->getProtocol()][$key] : static::$config[$this->getProtocol()];
    }
658329
protected function get($key, $default = null)
    {
        $val = dot_access($this->configuration, $key);
        return $val !== null ? $val : $default;
    }