If I add a route within a route group, the route cannot be resolved by name.
Example
use League\Route\RouteGroup;
use League\Route\Router;
$router = new League\Route\Router();
$router->group('', function (RouteGroup $group): void {
$group->get('/', \App\Action\HomeIndexAction::class)->setName('root');
});
// A quick test
$router->getNamedRoute('root');
Error message: No route of the name (root) exists
This is just a minimal example. In reality I have much more named routes. The problem is, they cannot be found if the name is defined in a route group.
If I add a route within a route group, the route cannot be resolved by name.
Example
Error message:
No route of the name (root) exists
This is just a minimal example. In reality I have much more named routes. The problem is, they cannot be found if the name is defined in a route group.