static Response
create(mixed $data = null, int $status = 200, array $headers = array())
Factory method for chainability. Example: return JsonResponse::create($data, 200)
->setSharedMaxAge(300);
Parameters mixed $data The json response data int $status The response status code array $headers An array of response headers Return Value Response