From 5f3d8139dbca5d6cec4ccd330690b0c40d88c66d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Feb 2021 14:51:03 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HttpServer/Route/Middleware.php b/HttpServer/Route/Middleware.php index 57c7a6f2..7e7234a5 100644 --- a/HttpServer/Route/Middleware.php +++ b/HttpServer/Route/Middleware.php @@ -81,13 +81,13 @@ class Middleware $node->addInterceptor($attribute->reflectClass($attribute->interceptor)); } if ($attribute instanceof After) { - $node->addInterceptor($attribute->reflectClass($attribute->after)); + $node->addAfter($attribute->reflectClass($attribute->after)); } if ($attribute instanceof RMiddleware) { - $node->addInterceptor($attribute->reflectClass($attribute->middleware)); + $node->addMiddleware($attribute->reflectClass($attribute->middleware)); } if ($attribute instanceof Limits) { - $node->addInterceptor($attribute->reflectClass($attribute->limits)); + $node->addLimits($attribute->reflectClass($attribute->limits)); } } }