From a09225952c6be3295d5b26e33e720359bca939a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 31 Aug 2020 23:40:02 +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/Annotation/Annotation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/Annotation/Annotation.php b/system/Annotation/Annotation.php index 88b7dd99..4dced1a2 100644 --- a/system/Annotation/Annotation.php +++ b/system/Annotation/Annotation.php @@ -72,12 +72,12 @@ class Annotation extends BaseAnnotation /** - * @return \HttpServer\Events\Http + * @return Http * @throws */ public function getHttp() { - return Snowflake::createObject($this->_classMap['http']); + return make($this->_classMap['http'], $this->_classMap['http']); } @@ -87,7 +87,7 @@ class Annotation extends BaseAnnotation */ public function getWebsocket() { - return Snowflake::createObject($this->_classMap['websocket']); + return make($this->_classMap['websocket'], $this->_classMap['websocket']); } /**