From 558e72f4136d3322d84d60d4804df1e8c33d3af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 18 Sep 2020 19:27:13 +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/OnHandshake.php | 1 - System/Annotation/Annotation.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Events/OnHandshake.php b/HttpServer/Events/OnHandshake.php index 9bc27184..d6c2b7c6 100644 --- a/HttpServer/Events/OnHandshake.php +++ b/HttpServer/Events/OnHandshake.php @@ -54,7 +54,6 @@ class OnHandshake extends Callback /** @var AWebsocket $manager */ $manager = Snowflake::app()->annotation->get('websocket'); - var_dump($manager->has($manager->getName(AWebsocket::HANDSHAKE))); if ($manager->has($manager->getName(AWebsocket::HANDSHAKE))) { $manager->runWith($manager->getName(AWebsocket::HANDSHAKE), [$request, $response]); } else { diff --git a/System/Annotation/Annotation.php b/System/Annotation/Annotation.php index 1a613e20..ce595066 100644 --- a/System/Annotation/Annotation.php +++ b/System/Annotation/Annotation.php @@ -93,6 +93,7 @@ class Annotation extends BaseAnnotation if (!$this->isLegitimate($events)) { continue; } + var_dump($this->getName($annotation, $events)); $this->push($this->getName($annotation, $events), [$controller, $methodName]); } }