Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Add docs for the Mime component#10886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
def17b7 to97e2b48CompareThis PR was squashed before being merged into the 4.3-dev branch (closes#29896).Discussion----------[Mime] Add the component| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | yes| Tests pass? | yes| Fixed tickets |#28832#21985 makes#15460 trivial| License | MIT| Doc PR |symfony/symfony-docs#10886This has been on my todo-list for X years :)Commits-------bdca5d9 tweaked code5268389 [Mime] added freedesktop as a source for mime types74ca91d [Mime] added the componentd7ee0ec [HttpFoundation] updated File code
Instead of adding comments about possible changes, I've decided to commit them. Revert totally or partially if you disagree with them. Thanks!
Uh oh!
There was an error while loading.Please reload this page.
| **Purpose**: Add a custom MIME type guesser to MimeTypes | ||
| To add a custom MIME type guesser - in addition to the core guessers - create a | ||
| class that implements:class:`Symfony\\Component\\Mime\\MimeTypes`, register it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Is itMimeTypesInterface ?
| ================== | ||
| The MIME component provides utilities related to MIME types, such as | ||
| guessing the MIME type of a given file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
If the scope of the component is just media types rather than MIME as a whole, could it be named as such instead?
OskarStark commentedFeb 17, 2019
Looks like the code was merged, can we merge this too and announce this new component? |
javiereguiluz commentedApr 4, 2019
Closing because we've added all these contents to#11280, which documents the entire Mime component. |
docs forsymfony/symfony#29896