src/Cache.php
protected function buildResponse($html, ResponseInterface $response)
    {
        // @codeCoverageIgnoreStart
        $body = new Stream('php://memory', 'w');
        $body->write($html);
        $response = $response->withBody($body);

        return $response;
        // @codeCoverageIgnoreEnd
    }
protected function buildResponse($html, ResponseInterface $response)
    {
        // @codeCoverageIgnoreStart
        $body = new Stream('php://memory', 'w');
        $body->write($html);
        $response = $response->withBody($body);

        return $response;
        // @codeCoverageIgnoreEnd
    }
protected function buildResponse ( $ html , ResponseInterface $ response ) { // @codeCoverageIgnoreStart $ body = new Stream ( 'php://memory' , 'w' ) ; $ body -> write ( $ html ) ; $ response = $ response -> withBody ( $ body ) ; return $ response ; // @codeCoverageIgnoreEnd }
Builds response instance with HTML body from HTML passed in.

@param string                              $html     HTML used for response body
@param \Psr\Http\Message\ResponseInterface $response Response used as base for response

@author Benjamin Carl <opensource@clickalicious.de>

@return \Psr\Http\Message\ResponseInterface

@throws \InvalidArgumentException
@throws \RuntimeException
Builds response instance with HTML body from HTML passed in .