public function dispatchContent() { ob_start(); method_exists($this->bar, 'dispatchContent') === true ? $this->bar->dispatchContent() : $this->bar->dispatchAssets(); return ob_get_clean(); }
/** * dispatchContent. * * @method dispatchContent * * @param \Illuminate\Http\Request $request * @param \Closure $next * * @return \Symfony\Component\HttpFoundation\Response */ protected function dispatchContent($request, $next) { $this->storeWrapper->start(); $this->debugbar->dispatchContent(); $response = $this->debugbar->render($next($request)); $this->storeWrapper->store()->close(); return $response; }