exception_handle配置参数支持使用闭包定义render处理

This commit is contained in:
thinkphp
2017-08-14 15:40:32 +08:00
parent fdb5a966ed
commit 68b274aa52
2 changed files with 16 additions and 1 deletions

View File

@@ -110,6 +110,9 @@ class Error
$handle = new $class;
} else {
$handle = new Handle;
if ($class instanceof \Closure) {
$handle->setRender($class);
}
}
}
return $handle;