mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
修正classmap中遗漏think\debug\Trace的路径 (#179)
* 修正classmap中遗漏think\debug\trace\Html和think\debug\trace\Console的路径 * 修正classmap中遗漏think\debug\Trace的路径 * 判断trace类型类是否存在
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
namespace think\debug;
|
||||
|
||||
use think\Config;
|
||||
use think\exception\ClassNotFoundException;
|
||||
use think\Log;
|
||||
use think\Request;
|
||||
use think\Response;
|
||||
@@ -31,7 +32,11 @@ class Trace
|
||||
|
||||
$class = false !== strpos($type, '\\') ? $type : '\\think\\debug\\trace\\' . ucwords($type);
|
||||
unset($config['type']);
|
||||
$trace = new $class($config);
|
||||
if(class_exists($class)) {
|
||||
$trace = new $class($config);
|
||||
} else {
|
||||
throw new ClassNotFoundException('class not exists:' . $class, $class);
|
||||
}
|
||||
|
||||
if ($response instanceof Redirect) {
|
||||
//TODO 记录
|
||||
|
||||
Reference in New Issue
Block a user