Symfony\Component\HttpFoundation\JsonResponse::__construct
Constructor.
Signature
public function __construct([mixed
$data = null,
[integer
$status = 200,
array
$headers]] )
Parameters
$data
— mixed- The response data
$status
— integer- The response status code
$headers
— array- An array of response headers