Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function resolve(string $httpVerb, string $path) |
||
29 | { |
||
30 | /* @var $route Routable */ |
||
31 | foreach ($this->routes as $route) { |
||
32 | if ($route->isHttpVerbAndPathAMatch($httpVerb, $path)) { |
||
33 | return $route->resolve(); |
||
34 | } |
||
35 | } |
||
36 | |||
37 | throw new RouteNotFoundException( |
||
38 | "Route path '{$path}' with http verb '{$httpVerb}'" |
||
39 | ); |
||
40 | } |
||
41 | } |
||
42 |