src/Leevel/Debug/Middleware/Debug.php
public function handle(Closure $next, IRequest $request): void
    {
        if (!$this->app->debug()) {
            $next($request);

            return;
        }

        $this->debug->bootstrap();

        $next($request);
    }
public function handle(Closure $next, IRequest $request): void
    {
        if (!$this->app->debug()) {
            $next($request);

            return;
        }

        $this->debug->bootstrap();

        $next($request);
    }
请求.

@param \Closure              $next
@param \Leevel\Http\IRequest $request