src/Viserio/Component/Routing/Router.php
public function dispatch(ServerRequestInterface $request): ResponseInterface
    {
        $dispatcher = $this->dispatcher;

        if ($this->container !== null && \method_exists($dispatcher, 'setContainer')) {
            $dispatcher->setContainer($this->container);
        }

        return $dispatcher->handle($this->routes, $request);
    }
public function dispatch(ServerRequestInterface $request): ResponseInterface
    {
        $dispatcher = $this->dispatcher;

        if ($this->container !== null && \method_exists($dispatcher, 'setContainer')) {
            $dispatcher->setContainer($this->container);
        }

        return $dispatcher->handle($this->routes, $request);
    }
{@inheritdoc}