public function js(): ResponseInterface
    {
        $renderer = $this->profiler->getAssetsRenderer();

        $stream = $this->streamFactory->createStream(
            $renderer->dumpAssetsToString('js')
        );

        $response = $this->responseFactory->createResponse();
        $response = $response->withHeader('content-type', 'text/js');

        return $response->withBody($stream);
    }
public function js(): ResponseInterface
    {
        $renderer = $this->profiler->getAssetsRenderer();

        $stream = $this->streamFactory->createStream(
            $renderer->dumpAssetsToString('js')
        );

        $response = $this->responseFactory->createResponse();
        $response = $response->withHeader('content-type', 'text/js');

        return $response->withBody($stream);
    }
public function js ( ) : ResponseInterface { $ renderer = $ this -> profiler -> getAssetsRenderer ( ) ; $ stream = $ this -> streamFactory -> createStream ( $ renderer -> dumpAssetsToString ( 'js' ) ) ; $ response = $ this -> responseFactory -> createResponse ( ) ; $ response = $ response -> withHeader ( 'content-type' , 'text/js' ) ; return $ response -> withBody ( $ stream ) ; }
Return the javascript for the Debugbar.

@return \Psr\Http\Message\ResponseInterface
Return the javascript for the Debugbar .