From f6d9ad21c458faae5a3932d40a48927777d4c39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 19 Apr 2021 16:33:58 +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 --- Annotation/Route/Socket.php | 4 ++-- HttpServer/Events/OnHandshake.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Annotation/Route/Socket.php b/Annotation/Route/Socket.php index 278db1bc..c6e894ae 100644 --- a/Annotation/Route/Socket.php +++ b/Annotation/Route/Socket.php @@ -5,6 +5,7 @@ namespace Annotation\Route; use Annotation\Attribute; +use Exception; use HttpServer\Route\Router; use ReflectionException; use Snowflake\Exception\ComponentException; @@ -41,7 +42,7 @@ use Snowflake\Snowflake; /** * @param array $handler * @return Router - * @throws \Exception + * @throws Exception */ public function execute(array $handler): Router { @@ -50,7 +51,6 @@ use Snowflake\Snowflake; $method = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri); - var_dump($method); $router->addRoute($method, $handler, 'sw::socket'); return $router; diff --git a/HttpServer/Events/OnHandshake.php b/HttpServer/Events/OnHandshake.php index 42ffb997..6898e582 100644 --- a/HttpServer/Events/OnHandshake.php +++ b/HttpServer/Events/OnHandshake.php @@ -139,7 +139,6 @@ class OnHandshake extends Callback $sRequest->parseUri(); if (($node = $router->find_path($sRequest)) === null) { - var_dump($node); return $this->disconnect($response, 404); } return $node->dispatch($sRequest, Response::create($response));