@param null $default

@return null|string
963062
public function getReferer($default = null)
    {
        if (!$current = $this->requestStack->getCurrentRequest()) {
            return $default;
        }

        $referer = $current->headers->get('referer');

        if ($referer === $current->getUri()) {
            return $default;
        }

        return $referer;
    }
1321118
public static function getLocaleString(string $default = 'en-US'): string
    {
        $i18n = static::get('i18n', null, false);

        return $i18n ? (string)$i18n->getLocale() : $default;
    }
436284
public function get($key, $default = null)
    {
        if (array_key_exists($key, $this->params)) {
            return $this->params[$key];
        }

        return $default;
    }
1249452
public function get( $key, $default = NULL )
	{
		if( $this->has( $key ) )
			return $this->pairs[( !$this->caseSensitive ? strtolower( $key ) : $key )];
		return $default;
	}
298817
public function get($key, $default = null)
    {
        return isset($this->options[$key]) ? $this->options[$key] : $default;
    }
346518
public function url($default = null): ?string
    {
        $disk = $this->getAttribute('disk');

        if (Storage::disk($disk)->exists($this->physicalPath())) {
            return Storage::disk($disk)->url($this->physicalPath());
        }

        return $default;
    }
806879
public function getParam($name, $default = null)
    {
        $params = $this->_context->params;
        return isset($params[$name]) ? $params[$name] : $default;
    }
714867
public static function getString($name, $default = null)
    {
        if (isset($_GET[$name]) && $_GET[$name] !== '') return self::parseInputToString($_GET[$name]);
        return $default;
    }
479482
public function get ($name, $default = null)
		{
			foreach ($this->_data as $d)
			{
				if ($d->name === $name)
					return $d->value;
			}

			return $default;
		}
93610
public function getOption($option, $default = NULL)
	{
		return isset($this->options[ $option ]) ? $this->options[ $option ] : $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;
  }
995028
public function get($key, $default = null) {
		$this->check();
		$value = $this->readValue($key);
		return is_null($value) ? $default : $value;
	}
848585
public function get($name, $default = null)
    {
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return $default;
    }
1014358
public function get($name, $default = null)
    {
        if (false === $this->has($name)) {
            return $default;
        }

        return $this->vars[$name];
    }
71187
public static function get($name = null, $default = null)
    {
        self::init();

        if (!$name) {
            return self::$config;
        } else {
            if (isset(self::$config[$name])) {
                return self::$config[$name];
            } else {
                return $default;
            }
        }
    }
701121
public function get($key, $default = null) {
		$this->loadIfNeeded();

		return isset($this->array[$key]) ? $this->array[$key] : $default;
	}
285027
public function header(string $key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->getHeaders();
        }
        return $this->getHeader($key) ?? $default;
    }