Get the passed config key using the custom
form config, if any.

@param string $key
@param mixed $default

@return mixed
194269
public function getConfig($key = null, $default = null)
    {
        return $this->formHelper->getConfig($key, $default, $this->formConfig);
    }
688611
public function get(string $key, $default = null)
    {
        // 1. split keys
        $keys = explode(".", $key);
        
        // 2. locate file
        $config_file = $this->context_directory . DIRECTORY_SEPARATOR . array_shift($keys) . ".php";
        
        // 3. load file contents
        if (!isset($this->config_content[$config_file])) {
            if (!is_file($config_file)) {
                throw new \Exception("Config file was not found: " . $config_file);
            }
            $config_content = require($config_file);
        } else {
            $config_content = $this->config_content[$config_file];
        }
        
        // 4. locate desired key
        try {
            return $this->getNestedVar($config_content, $keys);
        } catch (\Exception $e) {
            return $default; // fallback if unable to locate desired key
        }
        
    }
1131799
private function getDefaultValue($key, $default = null)
    {
        $value = null === $default && \array_key_exists($key, $this->defaults)
            ? $this->defaults[$key]
            : $default;

        return $this->getByManager($key, $value, $default);
    }
272821
public function getCfgValue($key, $default = null)
    {
        $value = $default;

        $cfg = $this->config->getCfg();

        if ($cfg) {
            $value = $cfg->get($key, $default);
        }

        return $value;
    }
389964
public function get($key = null, $default = null)
    {
        if (!isset($key)) {
            return $this->config;
        }

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

        return $default;
    }
140882
public function get($key, $default = null)
    {
        $keys = explode('.', $key);
        $value = $default;
        foreach ( $keys as $i => $_key ) {
            if ( ! $i && isset($this->_params[$_key]) ) {
                $value = $this->_params[$_key];
            } elseif ( is_array($value) && isset($value[$_key]) ) {
                $value = $value[$_key];
            } else {
                $value = $default;
                break;
            }
        }
        return $value;
    }
372878
public static function get($key, $default = NULL) {
        if (isset(self::$configs[$key]))
            return self::$configs[$key];

        return $default;

    }
710100
public function get($key, $default = null) {
        $key = $this->getAbsoluteConfigKey($key);

        return $this->getConfigParser()
            ->parse($this, array_get($this->config, $key, $default));
    }
1061446
public function get($key = null, $default = null)
    {
        if ($this->has($key)) {
            return $this->getValueAtKey($key, $this->payload());
        }
        return $default;
    }
1325275
public function getConfig($key, Configuration $default = NULL)
	{
		$resolved = false;
		$value = $this->getByKey($key, $this->data, $resolved);
		
		if($resolved)
		{
			return new static($value);
		}
		
		return ($default === NULL) ? new static() : $default;
	}
975396
public function get($key, $default = null) {
		$keys = explode('.', $key);
		$conf = empty($this->environment) ? $this->conf : $this->conf[$this->environment];
		foreach ($keys as $v) {
			if (isset($conf[$v])) {
				$conf = $conf[$v];
			} else {
				return $default;
			}
		}
		return $conf;
	}
105216
static public function get($key = null, $default = null) {
        if (is_null($key)) return json_decode(json_encode(self::$_config));
        
        $config = &self::$_config;
        
        return Utils::arrayGet($config, $key, $default);
    }
650478
public function get($key = null, $default = null)
     {
         if (!empty($this->_settings->$key)) {
             return $this->_settings->$key;
         }

         return $default;
     }
494906
public function get($key, $default = null) {
		$this->refresh();
		$keys = explode('.', $key);
		$conf = $this->cache;
		foreach ($keys as $v) {
			if (isset($conf[$v])) {
				$conf = $conf[$v];
			} else {
				return $default;
			}
		}
		return $conf;
	}
146185
public function getConfig($key, $default = null)
	{
		$array = $this->config;

		if (is_null($key))
		{
			return $array;
		}

		if (isset($array[$key]))
		{
			return $array[$key];
		}

		foreach (explode('.', $key) as $segment)
		{
			if ( ! is_array($array) || ! array_key_exists($segment, $array))
			{
				return $default;
			}

			$array = $array[$segment];
		}

		return $array;
	}
508704
private function _getConfig(string $key, $default = null)
    {
        if (isset($this->_config[$key])) {
            return $this->_config[$key];
        }

        return $default;
    }
1135309
public static function get($key = '', $default = null)
    {
        if (isset(self::$configCache[$key])) {
            return self::$configCache[$key];
        }
        $file = '.develop.json';
        if (!is_file($file)) {
            return $default;
        }
        $content = file_get_contents($file);
        $config = json_decode($content, true);
        $keys = explode('.', $key);
        for ($index = 0; $index < count($keys); $index++) {
            if (!is_array($config) || !isset($config[$keys[$index]])) {
                return $default;
            }
            $config = $config[$keys[$index]];
        }
        self::$configCache[$key] = $config;
        return $config;
    }