Fixed issue causing SimpleRouter::exception helper not to work when used within a group (issue: #551)

This commit is contained in:
Simon Sessingø
2021-05-19 04:31:50 +02:00
parent 5ab8826bfb
commit f7f1f1e3de
2 changed files with 23 additions and 6 deletions
+1 -3
View File
@@ -432,9 +432,7 @@ class SimpleRouter
$group = new RouteGroup();
$group->addExceptionHandler($callbackHandler);
array_unshift($routes, $group);
static::router()->setRoutes($routes);
static::router()->addRoute($group);
return $callbackHandler;
}