ResponseBuilder
in package
implements ResponseBuilderInterface

FinalYes

Table of Contents

Interfaces

ResponseBuilderInterface
Builds a PSR-7 Response

Methods

__construct()  : mixed
build()  : ResponseInterface
Build a PSR-7 Response using the given string as the response body.

Methods

__construct()

public __construct(ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory) : mixed
Parameters
$responseFactory : ResponseFactoryInterface
$streamFactory : StreamFactoryInterface

build()

Build a PSR-7 Response using the given string as the response body.

public build([string $content = "" ]) : ResponseInterface
Parameters
$content : string = ""
Return values
ResponseInterface

        
On this page

Search results