Get app setting with given key

@param string $key
@param mixed $defaultValue
@return mixed
331083
public function getSetting($key, $defaultValue = null)
    {
        return $this->hasSetting($key) ? $this->settings[$key] : $defaultValue;
    }
557441
private function get($key, $default = null)
    {
        if ( ! empty($this->config[$key])) {
            return $this->config[$key];
        }

        if (function_exists('config')) {
            if (null !== (config($key))) {
                return config($key);
            }
        }
        
        return $default;
    }
538101
public function getOptional($key, $defaultValue = null)
  {
    if (array_key_exists($key, $this->data)) {
      return $this->data[$key];
    }
    return $defaultValue;
  }
935098
public function get($param, $defaultValue = null)
    {
        return array_key_exists($param, $this->config) ? $this->config[$param] : $defaultValue;
    }
995028
public function get($key, $default = null) {
		$this->check();
		$value = $this->readValue($key);
		return is_null($value) ? $default : $value;
	}
786174
public function getRequest($key = null, $defaultValue = null) 
    {
        if (!$key) {
            static $all = null;
            if ($all === null) {
                $all = array_merge($this->attributes, $_GET, $_REQUEST, $_POST);
            }
            return $all;
        }
        
        if (isset($_POST[$key])) {
            return $_POST[$key];
        }
        
        if (isset($_REQUEST[$key])) {
            return $_REQUEST[$key];
        }

        if (isset($_GET[$key])) {
            return $_GET[$key];
        }
        
        if (isset($this->attributes[$key])) {
            return $this->attributes[$key];
        }
        
        if (isset($_COOKIE[$key])) {
            return $_COOKIE[$key];
        }
        
        return $defaultValue;
    }
271684
public function get($key, $defaultValue = null)
    {
        if (isset($this->session[$key]) && !empty($this->session[$key])) {
            return $this->session[$key];
        }

        return $defaultValue;
    }
1215954
public function getOption($option, $defaultValue)
	{
		if (!isset($this->_options[$option]))
		{
			$this->setOption($option, $defaultValue);
		}

		return $this->_options[$option];
	}
832551
public function get(string $key, $defaultValue = null)
    {
        return Arr::get($this->items, $key, $defaultValue);
    }
1034503
public function getCookie($key, $defaultValue = null)
    {
        if (array_key_exists($key, $this->cookies)) {
            return $this->cookies[$key];
        }

        return $defaultValue;
    }
1169742
public function get($keyName, $defaultValue = null)
    {
        $this->initList();
        $keyName = strtolower($keyName);
        if (empty($this->list[$keyName])) {
            return $defaultValue;
        }
        return $this->list[$keyName];
    }
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;
    }
154572
public function get($key, $default = null) {
		$key = $this->getKey($key);
		$result = getConf($key);
		return $result === null ? $default : $result;
	}
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;
  }
1014878
public String get(String key, String defaultValue) {
		addToDefaults(key, defaultValue);
		String value = get(key);
		if (value == null) {
			return defaultValue;
		} else {
			return value;
		}
	}
1197458
public function get($key = null, $default = null, $set = false)
    {
        if (isset($this->_settings[$key])) {
            return $this->_settings[$key];
        }
        if ($set) {
            $this->set($key, $default);
        }
        return $default;
    }
377896
public Object get(String key, Object defaultValue) {
        Object value = get(key);
        return value == null ? defaultValue : value;
    }