From 2182a3dd91f0e71d27281fa8901611a02ef5e5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 9 Mar 2021 19:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnStart.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HttpServer/Events/OnStart.php b/HttpServer/Events/OnStart.php index 2bb8a7c5..1b66622a 100644 --- a/HttpServer/Events/OnStart.php +++ b/HttpServer/Events/OnStart.php @@ -28,8 +28,7 @@ class OnStart extends Callback if (Snowflake::getPlatform()->isLinux()) { name(Config::get('id', false, 'system:') . ' master.'); } - $event = Snowflake::app()->getEvent(); - $event->trigger(Event::SERVER_EVENT_START, null, $server); + fire(Event::SERVER_EVENT_START, [$server]); } }