configClass = Dispatcher::CONFIG_PREFIX . '\\' . trim($configClass, '\\'); }else{ $this->configClass = $configClass; } } // 设置配置文件内容片段 if (!is_null($configSection)) { $this->configSection = $configSection; } } /** * 根据索引取出详细配置信息 */ protected function getConfig() { $class = $this->configClass; if (class_exists($class) && method_exists($class, 'getData')) { return $class::getData($this->configSection); } return array(); } /** * 获取一组标识 * @param $flag * @return string */ protected function getFlag($flag = false) { $flag = $this->configClass . ':' . $this->configSection . ':' . intval($flag); return $flag; } }