[BUGFIX] Middlewares are no longer loaded on invalid routes

This commit is contained in:
Simon Sessingø
2015-10-27 16:42:39 +01:00
parent c2cf2334e7
commit d3ed3a61b5
3 changed files with 2 additions and 6 deletions
+1
View File
@@ -116,6 +116,7 @@ class RouterBase {
$routeNotAllowed = false;
$this->loadedRoute = $routeMatch;
$routeMatch->loadMiddleware($this->request);
$routeMatch->renderRoute($this->request);
break;
}