| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function resolve(ServerRequestInterface $serverRequest) |
||
| 38 | { |
||
| 39 | /* @var $route Routable */ |
||
| 40 | foreach ($this->routes as $route) { |
||
| 41 | if ($route->isHttpVerbAndPathAMatch($serverRequest->getMethod(), $serverRequest->getRequestTarget())) { |
||
| 42 | return $route; |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | throw new RouteNotFoundException('Route not found'); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |