? ? ? ? ? ?} ? ? ? ? ? ?//自動讀取配置文件 ? ? ? ? ? ?if (is_dir($path . 'config')) { ? ? ? ? ? ? ? ?$dir = $path . '配置'; ? ? ? ? ? ?} elseif (is_dir($this->configPath . $module)) { ? ? ? ? ? ? ? ?$dir = $this->configPath . $模塊; ? ? ? ? ? ?} ? ? ? ? ? ?$files = isset($dir) ? scandir($dir) : []; ? ? ? ? ? ?foreach ($files as $file) { ? ? ? ? ? ? ? ?if ('.' .pathinfo($file, PATHINFO_EXTENSION) === $this->configExt) { ? ? ? ? ? ? ? ? ? ?$filename = $dir . DIRECTORY_SEPARATOR 。 $文件; ? ? ? ? ? ? ? ? ? ?$this->config->load($filename, pathinfo($file, PATHINFO_FILENAME)); ? ? ? ? ? ? ? ?} ? ? ? ? ? ?}