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;
	}
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;
	}
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 ; }
Gets the given config key, will load from config defaults if not set or return
null if there is no default.

@param string|int $key

@return string|array
Gets the given config key will load from config defaults if not set or return null if there is no default .