From f8070ea8db2189363a70da7b8b2e9cc98a2af4b6 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 22 Jul 2016 18:05:58 +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 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/library/think/console/command/optimize/Config.php b/library/think/console/command/optimize/Config.php index 758e8864..3541e3be 100644 --- a/library/think/console/command/optimize/Config.php +++ b/library/think/console/command/optimize/Config.php @@ -10,7 +10,6 @@ // +---------------------------------------------------------------------- namespace think\console\command\optimize; -use think\Config as ThinkConfig; use think\console\command\Command; use think\console\Input; use think\console\input\Option; @@ -52,18 +51,18 @@ class Config extends Command $content = ''; $path = realpath(APP_PATH . $module) . DS; // 加载模块配置 - $config = ThinkConfig::load(CONF_PATH . $module . 'config' . CONF_EXT); + $config = \think\Config::load(CONF_PATH . $module . 'config' . CONF_EXT); // 加载应用状态配置 if ($config['app_status']) { - $config = ThinkConfig::load(CONF_PATH . $module . $config['app_status'] . CONF_EXT); + $config = \think\Config::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; - ThinkConfig::load($filename, is_string($name) ? $name : pathinfo($filename, PATHINFO_FILENAME)); + \think\Config::load($filename, is_string($name) ? $name : pathinfo($filename, PATHINFO_FILENAME)); } } @@ -82,7 +81,7 @@ class Config extends Command $content .= substr(file_get_contents($path . 'common' . EXT), 5) . PHP_EOL; } - $content .= '\think\Config::set(' . var_export(ThinkConfig::get(), true) . ');'; + $content .= '\think\Config::set(' . var_export(\think\Config::get(), true) . ');'; return $content; } }