Symfony\Component\HttpFoundation\Response::__construct
Constructor.
Signature
public function __construct([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
Errors/Exceptions
-
InvalidArgumentException
- When the HTTP status code is not valid