We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989e0e2 commit c1fa21eCopy full SHA for c1fa21e
src/Dispatcher.php
@@ -22,7 +22,15 @@ public function __construct(
22
private LoggerInterface $logger,
23
DispatcherRoutesFactoryInterface $routesFactory,
24
) {
25
- $this->routes = $routesFactory->create();
+ $routes = [];
26
+
27
+ foreach ($routesFactory->create() as $route) {
28
+ foreach ($route->getMethods() as $method) {
29
+ $routes[$method] = $route;
30
+ }
31
32
33
+ $this->routes = $routes;
34
}
35
36
/**
0 commit comments