mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Fixed issue causing SimpleRouter::exception helper not to work when used within a group (issue: #551)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user