取消APP_HOOK常量 默认开启插件机制

This commit is contained in:
thinkphp
2016-05-24 22:08:34 +08:00
parent b848abdf3b
commit 188e64abf6
9 changed files with 17 additions and 19 deletions

View File

@@ -126,7 +126,7 @@ class Log
$log[] = ['type' => $type, 'msg' => $msg];
// 监听log_write
APP_HOOK && Hook::listen('log_write', $log);
Hook::listen('log_write', $log);
if (is_null(self::$driver)) {
self::init(Config::get('log'));
}