Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
38 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
39 | { |
||
40 | $route = $this->router->dispatch($request->getMethod(), $request->getUri()->getPath()); |
||
41 | |||
42 | if ($route[0] === Dispatcher::NOT_FOUND) { |
||
43 | return $response->withStatus(404); |
||
44 | } |
||
59 |