src/Viserio/Component/Routing/Provider/RoutingServiceProvider.php
public static function createRouter(ContainerInterface $container): RouterContract
    {
        $router = new Router($container->get(DispatcherContract::class));

        $router->setContainer($container);

        return $router;
    }
public static function createRouter(ContainerInterface $container): RouterContract
    {
        $router = new Router($container->get(DispatcherContract::class));

        $router->setContainer($container);

        return $router;
    }
Create a router instance.

@param \Psr\Container\ContainerInterface $container

@return \Viserio\Component\Contract\Routing\Router