Recca0120\LaravelTracy\Debugbar::dispatchContent PHP Method

dispatchContent() public method

dispatch.
public dispatchContent ( ) : string
return string
    public function dispatchContent()
    {
        ob_start();
        method_exists($this->bar, 'dispatchContent') === true ? $this->bar->dispatchContent() : $this->bar->dispatchAssets();
        return ob_get_clean();
    }

Usage Example

Example #1
0
 /**
  * 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;
 }