src/Router/Loader/LaravelRoutesLoader.php 1 location
|
@@ 52-57 (lines=6) @@
|
| 49 |
|
// The included file must return the laravel router |
| 50 |
|
include $path; |
| 51 |
|
|
| 52 |
|
if (!($router instanceof LaravelRouter)) { |
| 53 |
|
throw new \Exception('Invalid return value from ' |
| 54 |
|
. pathinfo($path, PATHINFO_FILENAME) |
| 55 |
|
. ' expected instance of LaravelRouter' |
| 56 |
|
); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
return $router; |
| 60 |
|
} |
src/Module/AbstractModule.php 1 location
|
@@ 184-189 (lines=6) @@
|
| 181 |
|
// The included file must return the aura router |
| 182 |
|
$router = include $path; |
| 183 |
|
|
| 184 |
|
if (!($router instanceof AuraRouter)) { |
| 185 |
|
throw new \Exception('Invalid return value from ' |
| 186 |
|
. pathinfo($path, PATHINFO_FILENAME) |
| 187 |
|
. ' expected instance of AuraRouter' |
| 188 |
|
); |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
foreach ($router->getRoutes() as $route) { |
| 192 |
|
$route->addValues(array('_module' => $this->getName())); |