From 4b975b570b3b0a7175281881cc48e57bfc5197c8 Mon Sep 17 00:00:00 2001 From: xl Date: Wed, 28 Jun 2023 15:23:05 +0800 Subject: [PATCH] qqq --- src/RouterCollector.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/RouterCollector.php b/src/RouterCollector.php index c731400..f35b718 100644 --- a/src/RouterCollector.php +++ b/src/RouterCollector.php @@ -63,11 +63,9 @@ class RouterCollector implements \ArrayAccess, \IteratorAggregate * @var HashMap $handlers */ foreach ($this->methods as $method => $handler) { - [$method, $path] = explode('_', $method); - $middleware = $middlewareManager->get($handler->getClass(), $handler->getMethod()); - $handlers->put($path, new HttpRequestHandler($middleware, $handler)); + $this->methods[$method] = new HttpRequestHandler($middleware, $handler); } }