protected function createResponseBuilder()
	{
		try
		{
			$body = $this->streamFactory->createStream(fopen('php://temp', 'w+'));
		}
		catch (\InvalidArgumentException $e)
		{
			throw new \RuntimeException('Can not create "php://temp" stream.');
		}

		$response = $this->messageFactory->createResponse(200, null, [], $body);

		return new ResponseBuilder($response);
	}
protected function createResponseBuilder()
	{
		try
		{
			$body = $this->streamFactory->createStream(fopen('php://temp', 'w+'));
		}
		catch (\InvalidArgumentException $e)
		{
			throw new \RuntimeException('Can not create "php://temp" stream.');
		}

		$response = $this->messageFactory->createResponse(200, null, [], $body);

		return new ResponseBuilder($response);
	}
protected function createResponseBuilder ( ) { try { $ body = $ this -> streamFactory -> createStream ( fopen ( 'php://temp' , 'w+' ) ) ; } catch ( \ InvalidArgumentException $ e ) { throw new \ RuntimeException ( 'Can not create "php://temp" stream.' ) ; } $ response = $ this -> messageFactory -> createResponse ( 200 , null , [ ] , $ body ) ; return new ResponseBuilder ( $ response ) ; }
Create new ResponseBuilder instance

@return ResponseBuilder

@throws \RuntimeException If creating the stream from $body fails.
Create new ResponseBuilder instance