Fixed urls not being visible

This commit is contained in:
Simon Sessingø
2016-11-06 09:04:05 +01:00
parent 98cc8504d4
commit 2d57b45c7b
+12 -7
View File
@@ -85,16 +85,21 @@ class RouterBase {
$this->currentRoute = $route; $this->currentRoute = $route;
if($route instanceof RouterGroup && is_callable($route->getCallback()) && $route->matchRoute($this->request)) { if($route instanceof RouterGroup && is_callable($route->getCallback())) {
$group = $route; $route->renderRoute($this->request);
$group->renderRoute($this->request); if($route->matchRoute($this->request)) {
$mergedSettings = array_merge($settings, $group->getMergeableSettings());
$group = $route;
$mergedSettings = array_merge($settings, $group->getMergeableSettings());
// Add ExceptionHandler
if ($group->getExceptionHandler() !== null) {
$this->exceptionHandlers[] = $route;
}
// Add ExceptionHandler
if($group->getExceptionHandler() !== null) {
$this->exceptionHandlers[] = $route;
} }
} }