Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
32 | { |
||
33 | $this->eventManager->trigger(RegisterStaticRoutes::class); |
||
34 | $this->eventManager->trigger(RegisterDynamicRoutes::class); |
||
35 | try { |
||
36 | return $this->router->dispatch($request); |
||
37 | } catch (NotFoundException $e) { |
||
38 | return $handler->handle($request); |
||
39 | } |
||
42 |