From dae8325024fe91f04c7d4375457c7a33109edaea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 1 Sep 2020 15:33:37 +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/Http.php | 2 +- http-server/Events/WebSocket.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http-server/Events/Http.php b/http-server/Events/Http.php index 865bb5a4..ed18553b 100644 --- a/http-server/Events/Http.php +++ b/http-server/Events/Http.php @@ -37,7 +37,7 @@ class Http extends Server */ public function __construct($application, $host, $port = null, $mode = null, $sock_type = null) { - $application->set($host . ':' . $port, $this); + $application->set(Http::class, $this); $this->application = $application; parent::__construct($host, $port, $mode, $sock_type); } diff --git a/http-server/Events/WebSocket.php b/http-server/Events/WebSocket.php index 9eeeab13..c5740754 100644 --- a/http-server/Events/WebSocket.php +++ b/http-server/Events/WebSocket.php @@ -48,7 +48,7 @@ class WebSocket extends Server */ public function __construct($application, $host, $port = null, $mode = null, $sock_type = null) { - $application->set($host . ':' . $port, $this); + $application->set(WebSocket::class, $this); $this->application = $application; parent::__construct($host, $port, $mode, $sock_type); }