refactor framework kernel

This commit is contained in:
sunxyw
2023-02-24 16:49:24 +08:00
parent f60b886d76
commit bc76febadb
14 changed files with 266 additions and 162 deletions

View File

@@ -6,10 +6,11 @@ namespace ZM\Bootstrap;
use OneBot\Exception\ExceptionHandler;
use ZM\Exception\Handler;
use ZM\Kernel;
class HandleExceptions
class HandleExceptions implements Bootstrapper
{
public function bootstrap(array $config): void
public function bootstrap(Kernel $kernel): void
{
// 注册全局错误处理器
set_error_handler(function ($error_no, $error_msg, $error_file, $error_line) {