class ResponseBuilder implements ResponseBuilderInterface

Methods

Response
content(string $content = '', int $status = 200, array $headers = array())

No description

RedirectResponse
redirect($url, int $status = 302, array $headers = array())

No description

StreamedResponse
stream(callable $callback, int $status = 200, array $headers = array())

No description

JsonResponse
json(array $data, int $status = 200, array $headers = array())

No description

BinaryFileResponse
download($file, int $status = 200, array $headers = array(), bool $public = true, $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true)

No description

Details

at line 28
Response content(string $content = '', int $status = 200, array $headers = array())

Parameters

string $content
int $status
array $headers

Return Value

Response

at line 40
RedirectResponse redirect($url, int $status = 302, array $headers = array())

Parameters

$url
int $status
array $headers

Return Value

RedirectResponse

at line 52
StreamedResponse stream(callable $callback, int $status = 200, array $headers = array())

Parameters

callable $callback
int $status
array $headers

Return Value

StreamedResponse

at line 64
JsonResponse json(array $data, int $status = 200, array $headers = array())

Parameters

array $data
int $status
array $headers

Return Value

JsonResponse

at line 80
BinaryFileResponse download($file, int $status = 200, array $headers = array(), bool $public = true, $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true)

Parameters

$file
int $status
array $headers
bool $public
$contentDisposition
bool $autoEtag
bool $autoLastModified

Return Value

BinaryFileResponse