mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-08-30 12:45:32 +08:00
取消 APP_DEBUG 常量 改为 App::$debug 属性获取 设置调试模式 改为 app_debug 配置参数 在应用配置文件中设置
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
|
||||
namespace think;
|
||||
|
||||
use think\App;
|
||||
|
||||
class Config
|
||||
{
|
||||
// 配置参数
|
||||
@@ -59,7 +61,7 @@ class Config
|
||||
}
|
||||
if (is_file($file)) {
|
||||
// 记录加载信息
|
||||
APP_DEBUG && Log::record('[ CONFIG ] ' . $file, 'info');
|
||||
App::$debug && Log::record('[ CONFIG ] ' . $file, 'info');
|
||||
$type = pathinfo($file, PATHINFO_EXTENSION);
|
||||
if ('php' != $type) {
|
||||
return self::parse($file, $type, $name, $range);
|
||||
|
||||
Reference in New Issue
Block a user