@@ 105-114 (lines=10) @@ | ||
102 | { |
|
103 | try { |
|
104 | $match = false; |
|
105 | foreach ($this->routes as $route) { |
|
106 | if ($route->match($path, $method)) { |
|
107 | $this->lastRoute = $route->getRule(); |
|
108 | $match = true; |
|
109 | $results = $route->handle($this->di); |
|
110 | if ($results) { |
|
111 | return $results; |
|
112 | } |
|
113 | } |
|
114 | } |
|
115 | ||
116 | $this->handleInternal("404"); |
|
117 | } catch (ForbiddenException $e) { |
@@ 46-52 (lines=7) @@ | ||
43 | { |
|
44 | try { |
|
45 | $match = false; |
|
46 | foreach ($this->routes as $route) { |
|
47 | if ($route->match($path, $method)) { |
|
48 | $this->lastRoute = $route->getRule(); |
|
49 | $match = true; |
|
50 | $results = $route->handle($this->app); |
|
51 | } |
|
52 | } |
|
53 | ||
54 | if ($match) { |
|
55 | return $results; |