From eee84ea84c2a39dc823aa48fcfdace9817bfb265 Mon Sep 17 00:00:00 2001 From: kylin <1697622291@qq.com> Date: Mon, 15 Mar 2021 14:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B9=E6=B3=95=E7=BA=A7?= =?UTF-8?q?=E5=88=AB=E4=B8=AD=E9=97=B4=E4=BB=B6=E4=B8=8D=E8=B5=B7=E4=BD=9C?= =?UTF-8?q?=E7=94=A8=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DispatcherFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DispatcherFactory.php b/src/DispatcherFactory.php index 3b075ba..b953677 100644 --- a/src/DispatcherFactory.php +++ b/src/DispatcherFactory.php @@ -36,11 +36,11 @@ class DispatcherFactory extends Dispatcher foreach ($methods as $methodName => $method) { $methodMiddlewares = $middlewares; // Handle method level middlewares. + $methodName = $method->getName(); if (isset($methodMetadata[$methodName])) { $methodMiddlewares = array_merge($methodMiddlewares, $this->handleMiddleware($methodMetadata[$methodName])); $methodMiddlewares = array_unique($methodMiddlewares); } - $methodName = $method->getName(); if (substr($methodName, 0, 2) === '__') { continue; } -- Gitee