src/Route/RouterInjectable.php 1 location
|
@@ 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 |
|
|
src/Route/Router.php 1 location
|
@@ 143-151 (lines=9) @@
|
140 |
|
* |
141 |
|
* @return void |
142 |
|
*/ |
143 |
|
public function handleInternal($rule) |
144 |
|
{ |
145 |
|
if (!isset($this->internalRoutes[$rule])) { |
146 |
|
throw new NotFoundException("No internal route to handle: " . $rule); |
147 |
|
} |
148 |
|
$route = $this->internalRoutes[$rule]; |
149 |
|
$this->lastRoute = $rule; |
150 |
|
$route->handle($this->di); |
151 |
|
} |
152 |
|
|
153 |
|
|
154 |
|
|