Skip to content

Commit

Permalink
Merge branch '4.4'
Browse files Browse the repository at this point in the history
* 4.4:
  [Mime] Add \"mime.mime_type_guesser\" tag documentation
  • Loading branch information
javiereguiluz committed Jul 8, 2019
2 parents d8677e0 + d4cc44d commit 4cb9e60
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/mime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ MIME types and file name extensions::
These methods return arrays with one or more elements. The element position
indicates its priority, so the first returned extension is the preferred one.

.. _components-mime-type-guess:

Guessing the MIME Type
~~~~~~~~~~~~~~~~~~~~~~

Expand Down
16 changes: 16 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 guessing MIME types
`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 @@ -465,6 +466,21 @@ 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 guessing MIME types

This tag is used to register your own :ref:`MIME type guessers <components-mime-type-guess>`
in case the guessers provided by the :doc:`Mime component </components/mime>`
don't fit your needs.

.. versionadded:: 4.3

The ``mime.mime_type_guesser`` tag was introduced in Symfony 4.3.

.. _dic_tags-monolog:

monolog.logger
Expand Down

0 comments on commit 4cb9e60

Please sign in to comment.