| @@ 147-155 (lines=9) @@ | ||
| 144 | * |
|
| 145 | * @return void |
|
| 146 | */ |
|
| 147 | public function handleInternal($rule) |
|
| 148 | { |
|
| 149 | if (!isset($this->internalRoutes[$rule])) { |
|
| 150 | throw new NotFoundException("No internal route to handle: " . $rule); |
|
| 151 | } |
|
| 152 | $route = $this->internalRoutes[$rule]; |
|
| 153 | $this->lastRoute = $rule; |
|
| 154 | $route->handle($this->di); |
|
| 155 | } |
|
| 156 | ||
| 157 | ||
| 158 | ||
| @@ 80-88 (lines=9) @@ | ||
| 77 | * |
|
| 78 | * @throws \Anax\Route\NotFoundException |
|
| 79 | */ |
|
| 80 | public function handleInternal($rule) |
|
| 81 | { |
|
| 82 | if (!isset($this->internalRoutes[$rule])) { |
|
| 83 | throw new NotFoundException("No internal route to handle: " . $rule); |
|
| 84 | } |
|
| 85 | $route = $this->internalRoutes[$rule]; |
|
| 86 | $this->lastRoute = $rule; |
|
| 87 | $route->handle(); |
|
| 88 | } |
|
| 89 | ||
| 90 | ||
| 91 | ||