File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,8 @@ MIME types and file name extensions::
254254These methods return arrays with one or more elements. The element position
255255indicates its priority, so the first returned extension is the preferred one.
256256
257+ .. _components-mime-type-guess :
258+
257259Guessing the MIME Type
258260~~~~~~~~~~~~~~~~~~~~~~
259261
Original file line number Diff line number Diff 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 guessing MIME types
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,21 @@ reuse the Symfony application between requests to improve performance. This tag
466467is applied for example to the built-in :doc: `data collectors </profiler/data_collector >`
467468of 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 guessing MIME types
476+
477+ This tag is used to register your own :ref: `MIME type guessers <components-mime-type-guess >`
478+ in case the guessers provided by the :doc: `Mime component </components/mime >`
479+ don't fit your needs.
480+
481+ .. versionadded :: 4.3
482+
483+ The ``mime.mime_type_guesser `` tag was introduced in Symfony 4.3.
484+
469485.. _dic_tags-monolog :
470486
471487monolog.logger
You can’t perform that action at this time.
0 commit comments