Merge pull request #6990 from annando/fix-warning

Fix warning
This commit is contained in:
Hypolite Petovan 2019-04-09 01:29:00 -04:00 committed by GitHub
commit 6ea531d2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1270,7 +1270,8 @@ class App
// First we try explicit routes defined in App\Router
$this->router->collectRoutes();
Hook::callAll('route_collection', $this->router->getRouteCollector());
$data = $this->router->getRouteCollector();
Hook::callAll('route_collection', $data);
$this->module_class = $this->router->getModuleClass($this->cmd);