配置缓存指令改进 去除公共函数文件中的注释和空白

This commit is contained in:
thinkphp
2016-09-04 19:37:56 +08:00
parent f6adcfa4bf
commit c23a0d6c89

View File

@@ -78,7 +78,7 @@ class Config extends Command
// 加载公共文件
if (is_file($path . 'common' . EXT)) {
$content .= substr(file_get_contents($path . 'common' . EXT), 5) . PHP_EOL;
$content .= substr(php_strip_whitespace($path . 'common' . EXT), 5) . PHP_EOL;
}
$content .= '\think\Config::set(' . var_export(\think\Config::get(), true) . ');';