You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature symfony#61267 [HttpFoundation] Add support for structured MIME suffix (Spomky)
This PR was merged into the 7.4 branch.
Discussion
----------
[HttpFoundation] Add support for structured MIME suffix
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | Fixsymfony#61213
| License | MIT
Extended MIME type handling in `Request::getFormat()` to support structured suffixes like `application/soap+xml`. Introduced a private method to define fallback formats based on RFC specifications. Updated the test suite accordingly.
It adds supports for common mime types:
* `soap`: application/soap+xml (instead of `xml`)
* `problem`: application/problem+json
* `hal`: application/hal+json, application/hal+xml
* `jsonapi`: application/vnd.api+json
* `yaml`: text/yaml, application/x-yaml
* `wbxml`: application/vnd.wap.wbxml
* `pdf`: application/pdf
* `csv`: text/csv
Commits
-------
f2ba0b3 [HttpFoundation] Add new MIME type mappings to `getMimeTypes()``
0 commit comments