public static function setDbConfig(Config $config = null) { if (empty($config)) { if (empty(self::$dbConfig)) { self::$dbConfig = Config::parseConfig(DEFAULT_CONFIG_PATH, CONFIG_PATH); } } else { self::$dbConfig($config); } return self::$dbConfig; }