Symfony\Component\HttpFoundation\Response::create
Factory method for chainability
Example: return Response::create($body, 200) ->setSharedMaxAge(300);
Signature
public function create([string
$content = '',
[integer
$status = 200,
array
$headers]] )
Parameters
$content
— string- The response content
$status
— integer- The response status code
$headers
— array- An array of response headers
Returns
- Response