mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
exception_handle配置参数支持使用闭包定义render处理
This commit is contained in:
@@ -110,6 +110,9 @@ class Error
|
||||
$handle = new $class;
|
||||
} else {
|
||||
$handle = new Handle;
|
||||
if ($class instanceof \Closure) {
|
||||
$handle->setRender($class);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $handle;
|
||||
|
||||
Reference in New Issue
Block a user