From 675d7692f6a2223361b3eb5c5d940e9e5a181be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 16 Dec 2020 15:47:00 +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/Route/Middleware.php | 1 + HttpServer/Route/Reduce.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Middleware.php b/HttpServer/Route/Middleware.php index 6cdee8b3..830c41ad 100644 --- a/HttpServer/Route/Middleware.php +++ b/HttpServer/Route/Middleware.php @@ -82,6 +82,7 @@ class Middleware [$controller, $action] = $node->handler; $attributes = Snowflake::app()->getAttributes(); $annotation = $attributes->getByClass(get_class($controller), $action); + var_dump($annotation); foreach ($annotation as $item) { if ($item instanceof Interceptor) { $node->addInterceptor($item->interceptor); diff --git a/HttpServer/Route/Reduce.php b/HttpServer/Route/Reduce.php index 29e693a0..8b373bdf 100644 --- a/HttpServer/Route/Reduce.php +++ b/HttpServer/Route/Reduce.php @@ -48,7 +48,6 @@ class Reduce { return function ($stack, $pipe) { return function ($passable) use ($stack, $pipe) { - var_dump($pipe); if ($pipe instanceof Middleware) { return $pipe->onHandler($passable, $stack); } else {