merge framework and kernel

This commit is contained in:
sunxyw
2023-03-07 23:07:52 +08:00
parent 8f43012a5c
commit 772288b517
19 changed files with 153 additions and 176 deletions

View File

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