Get a configuration value

@param  string $key
@return mixed
519432
public function getConfig($key = null)
	{
		if (isLaravel5())
		{
			$configNameSpace = 'vendor.'.$this->packageVendor.'.'.$this->packageName.'.';
											//question ? result if true :(result is false)
			$key = $configNameSpace  . ($key ? '.'.$key : '');

			return $this->app['config']->get($key);
		}
	}
1357766
private function getConfig($key)
    {
        if (!array_key_exists($key, $this->instConfig))
            return null;
        else
            return $this->instConfig[$key];
    }
1258453
private function getSetting($key)
    {
        $settings = $this->settingsHelper->getSettings('general');

        if (array_key_exists($key, $settings)) {
            return $settings[$key];
        }

        return null;
    }
1141206
public function getSetting($key)
    {
        if (array_key_exists($key, $this->settings)) {
            return $this->settings[$key];
        } else {
            return false;
        }
    }
848923
public static function get($key) {
        if (!isset(self::$data[$key])) {
            throw new Exception("invalid config key");
        }

        return self::$data[$key];
    }
1248433
public static function get( $key = null ) {
		$configs = self::$configs;
		if ( $key ) {
			$configs = ! empty( self::$configs[ $key ] ) ? self::$configs[ $key ] : null;
		} else {
			$configs = self::$configs;
		}

		return $configs;
	}
1068964
public function get($key)
    {
        if (array_key_exists($key, $this->settings)) {
            return $this->settings[$key];
        }

        return false;
    }
593096
public function get($key, $name = null)
    {
        if ($name) {
            return array_key_exists($name, $this->config[$key]) ? $this->config[$key][$name] : null;
        } else {
            return $this->has($key) ? $this->config[$key] : null;
        }
    }
937257
public function getConfig($key = null)
	{
		if ($key === null)
		{
			return array_merge($this->configDefaults, $this->config);
		}
		elseif (isset($this->config[$key]))
		{
			return $this->config[$key];
		}
		elseif (isset($this->configDefaults[$key]))
		{
			return $this->configDefaults[$key];
		}

		return null;
	}
1167696
public function getConfigurationValue($key)
    {
        $configuration = $this->getConfiguration();

        $pathParts = explode(self::DELIMITER, $key);
        foreach ($pathParts as $pathPart) {
            if (isset($configuration[ucfirst($pathPart)]) === true) {
                $configuration = $configuration[ucfirst($pathPart)];
            } else {
                $configuration = null;
            }
        }

        return $configuration;
    }
604645
public static function getConfig($key)
    {
        return isset(self::$connectionConfig[$key]) ? self::$connectionConfig[$key] : null;
    }
891856
public function get_config($key = null, $default = null) {
        if ($this->config === null) {
            $this->config = (object) array();
        }
        if ($key === null) {
            return $this->config;
        }

        if (property_exists($this->config, $key)) {
            return $this->config->$key;
        }

        if ($default !== null) {
            return $default;
        }

        return configuration::get_default_value($key);
    }
1050692
public function getValue($key) {
		if (isset ( $this->a [$key] )) {
			return $this->a [$key];
		} else {
			return NULL;
		}
	}
658512
protected function iterateConfig(string $key)
    {
        $result = $this->config;

        foreach (explode('.', $key) as $p) {
            if (!isset($result[$p])) {
                return null;
            }

            $result = $result[$p];
        }

        return $result;
    }
181290
protected function getOptionOrConfig($key)
    {
        if ($option = $this->option($key)) {
            return $option;
        }

        return $this->config->get("laroute.{$key}");
    }
713533
public function getConfig($key) {
    if (isset($this->config[$key])) {
      return $this->config[$key];
    }
    return FALSE;
  }
1119808
public function get(string $key = null)
    {
        $result = (null !== $key)
            ? $this->_config[$key] ?? null
            : $this->_config;

        return $result;
    }