Skip to content

[Mime] Add "mime.mime_type_guesser" tag documentation #11906

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Tag Name Usage
`kernel.event_subscriber`_ To subscribe to a set of different events/hooks in Symfony
`kernel.fragment_renderer`_ Add new HTTP content rendering strategies
`kernel.reset`_ Allows to clean up services between requests
`mime.mime_type_guesser`_ Add your own logic for "mime type guessing"
`monolog.logger`_ Logging with a custom logging channel
`monolog.processor`_ Add a custom processor for logging
`routing.loader`_ Register a custom service that loads routes
Expand Down Expand Up @@ -466,6 +467,22 @@ reuse the Symfony application between requests to improve performance. This tag
is applied for example to the built-in :doc:`data collectors </profiler/data_collector>`
of the profiler to delete all their information.

.. _dic_tags-mime:

mime.mime_type_guesser
----------------------

**Purpose**: Add your own logic for "mime type guessing"

This tag allows you to add your own logic to the :ref:`mime type guessing <components-mime-guessing-the-mime-type>`
process. By default, mime type guessing is done by "guessers" based on the PHP FileInfo extension (if installed)
and the file command (if available).

.. seealso::

For information on how to create your own mime type guesser, see
:doc:`/components/mime/guessing-the-mime-type`.

.. _dic_tags-monolog:

monolog.logger
Expand Down