From a1cbf20e6c640c7bbcbd8d6f0c3e492d60dcf209 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 22 Jul 2016 18:00:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/console/command/optimize/Config.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/think/console/command/optimize/Config.php b/library/think/console/command/optimize/Config.php index f3a1b320..758e8864 100644 --- a/library/think/console/command/optimize/Config.php +++ b/library/think/console/command/optimize/Config.php @@ -10,7 +10,7 @@ // +---------------------------------------------------------------------- namespace think\console\command\optimize; -use think\Config; +use think\Config as ThinkConfig; use think\console\command\Command; use think\console\Input; use think\console\input\Option; @@ -52,18 +52,18 @@ class Config extends Command $content = ''; $path = realpath(APP_PATH . $module) . DS; // 加载模块配置 - $config = Config::load(CONF_PATH . $module . 'config' . CONF_EXT); + $config = ThinkConfig::load(CONF_PATH . $module . 'config' . CONF_EXT); // 加载应用状态配置 if ($config['app_status']) { - $config = Config::load(CONF_PATH . $module . $config['app_status'] . CONF_EXT); + $config = ThinkConfig::load(CONF_PATH . $module . $config['app_status'] . CONF_EXT); } // 读取扩展配置文件 if ($config['extra_config_list']) { foreach ($config['extra_config_list'] as $name => $file) { $filename = CONF_PATH . $module . $file . CONF_EXT; - Config::load($filename, is_string($name) ? $name : pathinfo($filename, PATHINFO_FILENAME)); + ThinkConfig::load($filename, is_string($name) ? $name : pathinfo($filename, PATHINFO_FILENAME)); } } @@ -82,7 +82,7 @@ class Config extends Command $content .= substr(file_get_contents($path . 'common' . EXT), 5) . PHP_EOL; } - $content .= '\think\Config::set(' . var_export(Config::get(), true) . ');'; + $content .= '\think\Config::set(' . var_export(ThinkConfig::get(), true) . ');'; return $content; } }