public function js()
    {
        $renderer = $this->debugbar->getJavascriptRenderer();

        $content = $renderer->dumpAssetsToString('js');

        $response = new Response(
            $content, 200, [
                'Content-Type' => 'text/javascript',
            ]
        );

        return $this->cacheResponse($response);
    }
public function js()
    {
        $renderer = $this->debugbar->getJavascriptRenderer();

        $content = $renderer->dumpAssetsToString('js');

        $response = new Response(
            $content, 200, [
                'Content-Type' => 'text/javascript',
            ]
        );

        return $this->cacheResponse($response);
    }
public function js ( ) { $ renderer = $ this -> debugbar -> getJavascriptRenderer ( ) ; $ content = $ renderer -> dumpAssetsToString ( 'js' ) ; $ response = new Response ( $ content , 200 , [ 'Content-Type' => 'text/javascript' , ] ) ; return $ this -> cacheResponse ( $ response ) ; }
Return the javascript for the Debugbar

@return \Symfony\Component\HttpFoundation\Response
Return the javascript for the Debugbar