From edc10d9b1ebf271f8d9aa62e82a43457d1d2794e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 1 Sep 2020 03:40:45 +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 --- http-server/Events/WebSocket.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/http-server/Events/WebSocket.php b/http-server/Events/WebSocket.php index c82da76d..f5da3b29 100644 --- a/http-server/Events/WebSocket.php +++ b/http-server/Events/WebSocket.php @@ -67,11 +67,10 @@ class WebSocket extends Server { parent::set($settings); - $application = Snowflake::get(); - $application->set(WebSocket::class, $this); - $application->set(Pool::class, $pool); + $this->application->set(WebSocket::class, $this); + $this->application->set(Pool::class, $pool); - $annotation = $application->annotation; + $annotation = $this->application->annotation; $annotation->register('websocket', AWebsocket::class); ServerManager::set($this, $settings, $this->application, $events, $config);