From f64d40231757edafaf01343842c0c113e2fbbb90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 4 Sep 2020 18:00:06 +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/Annotation/Annotation.php | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/HttpServer/Route/Annotation/Annotation.php b/HttpServer/Route/Annotation/Annotation.php index 29c4ae28..40e125e3 100644 --- a/HttpServer/Route/Annotation/Annotation.php +++ b/HttpServer/Route/Annotation/Annotation.php @@ -113,14 +113,14 @@ class Annotation extends \Snowflake\Annotation\Annotation return; } - $explode = explode(',', $annotation[1][2]); - foreach ($explode as $middleware) { - $middleware = 'App\Http\Interceptor\\' . $middleware; - if (!class_exists($middleware)) { - continue; - } - $node->addMiddleware($middleware); - } +// $explode = explode(',', $annotation[1][2]); +// foreach ($explode as $middleware) { +// $middleware = 'App\Http\Interceptor\\' . $middleware; +// if (!class_exists($middleware)) { +// continue; +// } +// } + $node->addMiddleware($annotation); } @@ -136,10 +136,10 @@ class Annotation extends \Snowflake\Annotation\Annotation return; } - $explode = explode(',', $annotation[1][2]); - foreach ($explode as $middleware) { - $node->addInterceptor($middleware); - } +// $explode = explode(',', $annotation[1][2]); +// foreach ($explode as $middleware) { +// } + $node->addInterceptor($annotation); }