src/Leevel/Router/Router.php
protected function runRoute(IRequest $request, callable $bind): IResponse
    {
        $this->throughMiddleware($this->request);

        $response = $this->container->call($bind, $this->matchedVars());

        if (!($response instanceof IResponse)) {
            $response = new Response($response);
        }

        return $response;
    }
protected function runRoute(IRequest $request, callable $bind): IResponse
    {
        $this->throughMiddleware($this->request);

        $response = $this->container->call($bind, $this->matchedVars());

        if (!($response instanceof IResponse)) {
            $response = new Response($response);
        }

        return $response;
    }
运行路由.

@param \Leevel\Http\IRequest $request
@param callable              $bind

@return \Leevel\Http\IResponse