split runtime info into runtime preferences

This commit is contained in:
sunxyw
2023-03-09 22:36:20 +08:00
parent 772288b517
commit 510bb8dc30
17 changed files with 126 additions and 134 deletions

View File

@@ -5,12 +5,12 @@ declare(strict_types=1);
namespace ZM\Bootstrap;
use OneBot\Exception\ExceptionHandler;
use ZM\Config\RuntimePreferences;
use ZM\Exception\Handler;
use ZM\HasRuntimeInfo;
class HandleExceptions implements Bootstrapper
{
public function bootstrap(HasRuntimeInfo $runtime_info): void
public function bootstrap(RuntimePreferences $preferences): void
{
// 注册全局错误处理器
set_error_handler(function ($error_no, $error_msg, $error_file, $error_line) {