From 546a1186650360dbfdd1435675b86e3ff20c710b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 14 Dec 2020 17:48:29 +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/Reduce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Reduce.php b/HttpServer/Route/Reduce.php index 95b90f37..1a150aa6 100644 --- a/HttpServer/Route/Reduce.php +++ b/HttpServer/Route/Reduce.php @@ -48,7 +48,7 @@ class Reduce return function ($stack, $pipe) { return function ($passable) use ($stack, $pipe) { if ($pipe instanceof \HttpServer\IInterface\Middleware) { - return $pipe->handler($passable, $stack); + return $pipe->onHandler($passable, $stack); } else { return $pipe($passable, $stack); }