Get the default config, merged with an option overriding config.

@param   string  $configKey

@return  array   The merged configuration
334479
public function getConfig($configKey = null)
    {
        $default = clone $this->config->configs->default;

        if (null !== $configKey) {
            $default->merge(clone $this->config->configs->{$configKey});
        }

        return $default->toArray();
    }
498034
public function get(string $key, $default = null)
    {
        if (null === $this->config) {
            $this->config = $this->configurationParser
                ->parseConfig();
        }

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

        $parts = \explode('.', $key);

        $value = $this->config;
        foreach ($parts as $part) {
            if (!\is_array($value) || !\array_key_exists($part, $value)) {
                return $default;
            }

            $value = $value[$part];
        }

        return $value;
    }
242901
protected function getPackageConfig($key = null)
    {
        if (! file_exists('integrated.json') && ! file_exists('integrated.php')) {
            return [];
        }

        if ( ! $this->packageConfig) {
            $this->loadPreferredConfigFile();
        }

        if ($key) {
            if (! isset($this->packageConfig[$key])) {
                throw new IntegratedException(
                    "Hmm, did you set a '{$key}' key in your integrated.(json|php) file? Can't find it!"
                );
            }

            return $this->packageConfig[$key];
        }

        return $this->packageConfig;
    }
1233067
public function get(string $key)
    {
        $key = strtolower($key);

        if (empty($this->configuration[$key])) {
            $this->loadConfigFile($key);
        }

        return $this->configuration[$key];
    }
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;
	}
706030
public function configGet($key, $default = null)
    {
        $keys = explode('.', $key);
        $keysCount = count($keys);
        $config = $this->loadConfigure($keys[0]);

        for ($i = 1; $i < $keysCount; $i++) {
            $config = isset($config[$keys[$i]]) ? $config[$keys[$i]] : 'NOT_HAVE';
        }

        return $config === 'NOT_HAVE' ? $default : $config;
    }
328956
protected function getConfig($key = null)
    {
        if (!is_null($key)) {
            if (!array_key_exists($key, $this->config)) {
                throw new \InvalidArgumentException('Config key "'.$key.'" does not exist. Valid keys are: "'.implode(', ', array_keys($this->config)).'"');
            }

            return $this->config[$key];
        }

        return $this->config;
    }
1240069
public function config($key = null, $default = null)
    {
        if ($key === null) {
            return $this->config;
        }

        return Arr::get($this->config, $key, $default);
    }
718434
public static function getAdapter(string $configKey = null): AbstractAdapter
    {
        $key = $configKey ?? static::getDefaultAdapterKey();

        if (!isset(static::$adapters[$key])) {
        	$config = static::getConfig()->get($key);

        	if ($config === null) {
        		throw new ConfigException("There is no \"{$key}\" key defined in database config");
	        }

            static::$adapters[$key] = static::resolve($config);
            static::$adapters[$key]->setConfigKey($key);
        }

        return static::$adapters[$key];
    }
457649
public function getConfig(?string $key = null, ?string $subKey = null)
    {
        if ($key === null) {
            return $this->config;
        }
        $key = (string) $key;
        $subKey = $subKey === null ? null : (string) $subKey;
        if (array_key_exists($key, $this->config)) {
            if ($subKey !== null) {
                return array_key_exists($subKey, $this->config[$key]) 
                    ? $this->config[$key][$subKey] 
                    : null;
            }
            return $this->config[$key];
        }
        return null;
    }
115151
public function objectConfigGet($key, $default = null)
	{
		// Is this key exists?
		if (array_key_exists($key, $this->objectConfig)) {
			return $this->objectConfig[$key];
		}

		return $default;
	}
489286
public function getConfigDefinition(string $configKey): ConfigDefinitionInterface
    {
        if (!$this->hasConfigDefinition($configKey)) {
            throw ConfigDefinitionException::noConfigDefinition($configKey);
        }

        return $this->configDefinitions[$configKey];
    }
713533
public function getConfig($key) {
    if (isset($this->config[$key])) {
      return $this->config[$key];
    }
    return FALSE;
  }
91516
final public static function getConfig($key = null)
    {
        $calledClass = get_called_class();

        // Load config
        if (!isset(self::$loadedConfigSet[$calledClass]) || null === self::$loadedConfigSet[$calledClass]) {
            self::$loadedConfigSet[$calledClass] = array_merge(self::$configDefault, static::loadConfig());
        }

        // Get config property
        return (null === $key)
            ? self::$loadedConfigSet[$calledClass]
            : self::$loadedConfigSet[$calledClass][$key];
    }
430669
protected function getConfiguration($key = null)
    {
        return $key ? static::$config[$this->getProtocol()][$key] : static::$config[$this->getProtocol()];
    }
136425
public function get($key, $default = null)
    {
        $config = $this->config;

        array_map(function ($key) use (&$config, $default) {
            $config = $config[$key] ?? $default;
        }, explode('.', $key));

        return $config;
    }
1209784
public static function configGet($key)
    {
		$data = self::getDbConnection()->fetchAssoc('SELECT value FROM config WHERE `class` = ? and `key` = ?', array( get_called_class(), $key ));
		if (!$data) return null;
		return unserialize($data['value']);
    }