src/Viserio/Component/Routing/Provider/RoutingServiceProvider.php
public function getFactories(): array
    {
        return [
            DispatcherContract::class => [self::class, 'createRouteDispatcher'],
            RouterContract::class     => [self::class, 'createRouter'],
            'route'                   => static function (ContainerInterface $container) {
                return $container->get(Router::class);
            },
            'router' => static function (ContainerInterface $container) {
                return $container->get(RouterContract::class);
            },
            Router::class => static function (ContainerInterface $container) {
                return $container->get(RouterContract::class);
            },
            UrlGeneratorContract::class => [self::class, 'createUrlGenerator'],
            UrlGenerator::class         => static function (ContainerInterface $container) {
                return $container->get(UrlGeneratorContract::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            DispatcherContract::class => [self::class, 'createRouteDispatcher'],
            RouterContract::class     => [self::class, 'createRouter'],
            'route'                   => static function (ContainerInterface $container) {
                return $container->get(Router::class);
            },
            'router' => static function (ContainerInterface $container) {
                return $container->get(RouterContract::class);
            },
            Router::class => static function (ContainerInterface $container) {
                return $container->get(RouterContract::class);
            },
            UrlGeneratorContract::class => [self::class, 'createUrlGenerator'],
            UrlGenerator::class         => static function (ContainerInterface $container) {
                return $container->get(UrlGeneratorContract::class);
            },
        ];
    }
{@inheritdoc}