Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
52 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
53 | { |
||
54 | if (empty($this->router)) { |
||
55 | throw new RuntimeException('No RouteCollection instance has been provided'); |
||
56 | } |
||
57 | |||
58 | return $next($request, $this->router->dispatch($request, $response)); |
||
59 | } |
||
60 | } |
||
61 |