src/Viserio/Component/Routing/Route.php
public function run(ServerRequestInterface $serverRequest): ResponseInterface
    {
        $parameters = \array_merge([$serverRequest], $this->parameters);

        if ($this->isControllerAction()) {
            return $this->invoker->call([$this->getController(), $this->getControllerMethod()], $parameters);
        }

        return $this->invoker->call($this->action['uses'], $parameters);
    }
public function run(ServerRequestInterface $serverRequest): ResponseInterface
    {
        $parameters = \array_merge([$serverRequest], $this->parameters);

        if ($this->isControllerAction()) {
            return $this->invoker->call([$this->getController(), $this->getControllerMethod()], $parameters);
        }

        return $this->invoker->call($this->action['uses'], $parameters);
    }
{@inheritdoc}