Skip to content

Commit 4cea8aa

Browse files
committed
minor #11906 [Mime] Add "mime.mime_type_guesser" tag documentation (jschaedl)
This PR was squashed before being merged into the 4.3 branch (closes #11906). Discussion ---------- [Mime] Add "mime.mime_type_guesser" tag documentation <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 316582f [Mime] Add \"mime.mime_type_guesser\" tag documentation
2 parents 7a08432 + 316582f commit 4cea8aa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

reference/dic_tags.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Tag Name Usage
2626
`kernel.event_subscriber`_ To subscribe to a set of different events/hooks in Symfony
2727
`kernel.fragment_renderer`_ Add new HTTP content rendering strategies
2828
`kernel.reset`_ Allows to clean up services between requests
29+
`mime.mime_type_guesser`_ Add your own logic for "mime type guessing"
2930
`monolog.logger`_ Logging with a custom logging channel
3031
`monolog.processor`_ Add a custom processor for logging
3132
`routing.loader`_ Register a custom service that loads routes
@@ -466,6 +467,22 @@ reuse the Symfony application between requests to improve performance. This tag
466467
is applied for example to the built-in :doc:`data collectors </profiler/data_collector>`
467468
of the profiler to delete all their information.
468469

470+
.. _dic_tags-mime:
471+
472+
mime.mime_type_guesser
473+
----------------------
474+
475+
**Purpose**: Add your own logic for "mime type guessing"
476+
477+
This tag allows you to add your own logic to the :ref:`mime type guessing <components-mime-guessing-the-mime-type>`
478+
process. By default, mime type guessing is done by "guessers" based on the PHP FileInfo extension (if installed)
479+
and the file command (if available).
480+
481+
.. seealso::
482+
483+
For information on how to create your own mime type guesser, see
484+
:doc:`/components/mime/guessing-the-mime-type`.
485+
469486
.. _dic_tags-monolog:
470487

471488
monolog.logger

0 commit comments

Comments
 (0)