protected function dispatchContent($request, $next) { $this->storeWrapper->start(); $this->debugbar->dispatchContent(); $response = $this->debugbar->render($next($request)); $this->storeWrapper->store()->close(); return $response; }