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));