Get a configuration item.

@param  string  $key
@param  mixed  $default
@return mixed
977457
public function get($key, $default = null)
    {
        if ($this->exists($key)) {
            return $this->items[$key];
        }

        $result = $this->items;

        foreach (explode('.', $key) as $piece) {
            if (is_array($result) && array_key_exists($piece, $result)) {
                $result = $result[$piece];
            } else {
                return $default;
            }
        }

        return $result;
    }
1191853
public function get($key, $default = null)
    {
        return ArrayHelper::get($this->getItems(), $key, $default, $useDotSyntax = true);
    }
437725
public function get($key, $default = null)
	{
		if(array_key_exists($key, $this->items))
		{
			return $this->items[$key];
		}

		return $default;
	}
217150
public function get(string $key,string $default=null)
  {
    $keys = explode('.',$key);
    $val = $this->confValues;

    for ($i=0; $i<count($keys); $i++) {
      $val = ( $val[ $keys[$i] ] ?? null);
      if (is_null($val)) break;
    }

    return $val ?? $default;
  }
172342
public function get($key, $default = null)
    {
        if (
            ($value = $this->call('get', [$key, static::NOT_FOUND])) ===
            static::NOT_FOUND
        ) {
            $value = Arr::get($this->items, $key, $default);

            if (is_array($value)) {
                $value = $this->__wrap($value);
            }
        }

        return $value;
    }
718822
public static function get($key, $default = null)
    {
        if (is_null($key)) {
            return $default;
        }

        return (isset($_GET[$key]) ? $_GET[$key] : $default);
    }
712634
public function get($key, $default = NULL) {

		return array_key_exists($key, $this->values) ? $this->values[$key] : $default;

	}
753402
public function getConfigurationValue($key, $default = null)
    {
        if (is_array($this->configuration) && array_key_exists($key, $this->configuration)) {
            return $this->configuration[$key];
        }

        return $default;
    }
390291
public function get($key, $default = null)
    {
        $pieces = explode('.', $key);
        $config = $this->config;

        foreach ($pieces as $piece) {
            if (!isset($config[$piece])) {
                return $default;
            }

            $config = $config[$piece];
        }

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

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

        $tmp = $this->config;
        foreach (explode('.', $key) as $segment) {
            if (!is_array($tmp) || !array_key_exists($segment, $tmp)) {
                return $default;
            }

            $tmp = $tmp[$segment];
        }

        return $tmp;
    }
1101921
public function get(string $key, $default = null)
	{
		[$file, $path] = $this->parseKey($key);

		if(!isset($this->configuration[$file]))
		{
			$this->load($file);
		}

		return $path === null ? $this->configuration[$file] : Arr::get($this->configuration[$file], $path, $default);
	}
1240069
public function config($key = null, $default = null)
    {
        if ($key === null) {
            return $this->config;
        }

        return Arr::get($this->config, $key, $default);
    }
668617
protected function getConfigValue($key, $default = null)
    {
        if (Arr::has($this->normalizedConfig, $key)) {
            return Arr::get($this->normalizedConfig, $key);
        }

        return $this->getFallbackConfigValue($key, $default);
    }
1338472
public function get($key, $default = null)
    {
        if (empty($key)) {
            return $default;
        }

        $parts = explode(".", $key);
        $file = array_shift($parts);

        if (!isset($this->registry[$file])) {
            $this->registry[$file] = $this->discover($file);
        }
        $res = $this->parse($key);

        return is_null($res) ? $default : $res;
    }
774898
public function get(string $key, $default = null)
    {
        $result = $this->iterateConfig($key);

        return is_null($result) ? $default : $result;
    }
520857
public function getItem($key, $default = null)
    {
        if (isset($this->container[$key])) {
            return $this->container[$key];
        }

        return $default;
    }
810783
private function get($key, $default = null)
    {
        if (isset($this->responseData['error'][$key])) {
            return $this->responseData['error'][$key];
        }

        return $default;
    }