@@ -393,25 +393,60 @@ private function isExpectedType(Model $model, string $className)
393
393
*/
394
394
public function getConverterClassInstance ($ encodeType )
395
395
{
396
- switch ($ encodeType )
396
+ switch ($ encodeType )
397
397
{
398
398
case "application/json " :
399
399
case "text/plain " :
400
+ case "application/ld+json " :
400
401
return new JSONConverter ($ this );
401
402
case "application/xml " :
402
403
case "text/xml " :
403
404
return new XMLConverter ($ this );
404
405
case "multipart/form-data " :
405
406
return new FormDataConverter ($ this );
406
- case "application/x-download " :
407
407
case "image/png " :
408
408
case "image/jpeg " :
409
- case "application/zip " :
410
409
case "image/gif " :
411
- case "text/csv " :
412
410
case "image/tiff " :
413
- case "application/octet-stream " :
411
+ case "image/svg+xml " :
412
+ case "image/bmp " :
413
+ case "image/webp " :
414
+ case "text/csv " :
414
415
case "text/html " :
416
+ case "text/css " :
417
+ case "text/javascript " :
418
+ case "text/calendar " :
419
+ case "application/x-download " :
420
+ case "application/zip " :
421
+ case "application/pdf " :
422
+ case "application/java-archive " :
423
+ case "application/javascript " :
424
+ case "application/octet-stream " :
425
+ case "application/xhtml+xml " :
426
+ case "application/x-bzip " :
427
+ case "application/msword " :
428
+ case "application/vnd.openxmlformats-officedocument.wordprocessingml.document " :
429
+ case "application/gzip " :
430
+ case "application/x-httpd-php " :
431
+ case "application/vnd.ms-powerpoint " :
432
+ case "application/vnd.rar " :
433
+ case "application/x-sh " :
434
+ case "application/x-tar " :
435
+ case "application/vnd.ms-excel " :
436
+ case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet " :
437
+ case "application/x-7z-compressed " :
438
+ case "audio/mpeg " :
439
+ case "audio/x-ms-wma " :
440
+ case "audio/vnd.rn-realaudio " :
441
+ case "audio/x-wav " :
442
+ case "audio/3gpp " :
443
+ case "audio/3gpp2 " :
444
+ case "video/mpeg " :
445
+ case "video/mp4 " :
446
+ case "video/webm " :
447
+ case "video/3gpp " :
448
+ case "video/3gpp2 " :
449
+ case "font/ttf " :
415
450
return new Downloader ($ this );
416
451
}
417
452
0 commit comments