Merge pull request #508 from skipperbent/v4-bootmanager-fix

[BUGFIX] BootManager findRoute not working.
This commit is contained in:
Simon Sessingø
2021-03-23 14:56:16 +01:00
committed by GitHub
6 changed files with 90 additions and 18 deletions
+7 -7
View File
@@ -269,6 +269,13 @@ class Router
{
$this->debug('Loading routes');
$this->fireEvents(EventHandler::EVENT_LOAD_ROUTES, [
'routes' => $this->routes,
]);
/* Loop through each route-request */
$this->processRoutes($this->routes);
$this->fireEvents(EventHandler::EVENT_BOOT, [
'bootmanagers' => $this->bootManagers,
]);
@@ -291,13 +298,6 @@ class Router
$this->debug('Finished rendering bootmanager "%s"', $className);
}
$this->fireEvents(EventHandler::EVENT_LOAD_ROUTES, [
'routes' => $this->routes,
]);
/* Loop through each route-request */
$this->processRoutes($this->routes);
$this->debug('Finished loading routes');
}