Conditions | 2 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | protected function bootstrapDispatcher(): void |
||
34 | { |
||
35 | $this->routeDispatcher = FastRoute\simpleDispatcher(function (RouteCollector $collector) { |
||
36 | foreach ($this->routes as $routeName => $route) { |
||
37 | $collector->addRoute($route['method'], $route['pattern'], $route['handler']); |
||
38 | } |
||
39 | }); |
||
40 | } |
||
41 | |||
56 |