Symfony\Component\HttpFoundation\Request::setFormat
Associates a format with mime types.
Signature
public function setFormat(string
$format,
string|array
$mimeTypes )
Parameters
$format
— string- The format
$mimeTypes
— object- The associated mime types (the preferred one must be the first as it will be used as the content type)