From 764ec412623d0d4390208801c3ad6ee350f0b900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 2 Sep 2020 11:52:42 +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 --- system/Application.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system/Application.php b/system/Application.php index 99662926..bb2c7461 100644 --- a/system/Application.php +++ b/system/Application.php @@ -34,11 +34,12 @@ class Application extends BaseApplication */ public function init() { - /** @var Server $https */ - $https = $this->make(Server::class, Server::class); + $application = Snowflake::get(); + + $https = $application->server; $https->initCore(Config::get('servers', true)); - $process = Snowflake::get()->processes; + $process = $application->processes; $process->initCore(); }