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 @@ -250,6 +250,8 @@ MIME types and file name extensions::
250
250
These methods return arrays with one or more elements. The element position
251
251
indicates its priority, so the first returned extension is the preferred one.
252
252
253
+ .. _components-mime-type-guess :
254
+
253
255
Guessing the MIME Type
254
256
~~~~~~~~~~~~~~~~~~~~~~
255
257
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Tag Name Usage
26
26
`kernel.event_subscriber `_ To subscribe to a set of different events/hooks in Symfony
27
27
`kernel.fragment_renderer `_ Add new HTTP content rendering strategies
28
28
`kernel.reset `_ Allows to clean up services between requests
29
+ `mime.mime_type_guesser `_ Add your own logic for guessing MIME types
29
30
`monolog.logger `_ Logging with a custom logging channel
30
31
`monolog.processor `_ Add a custom processor for logging
31
32
`routing.loader `_ Register a custom service that loads routes
@@ -465,6 +466,21 @@ reuse the Symfony application between requests to improve performance. This tag
465
466
is applied for example to the built-in :doc: `data collectors </profiler/data_collector >`
466
467
of the profiler to delete all their information.
467
468
469
+ .. _dic_tags-mime :
470
+
471
+ mime.mime_type_guesser
472
+ ----------------------
473
+
474
+ **Purpose **: Add your own logic for guessing MIME types
475
+
476
+ This tag is used to register your own :ref: `MIME type guessers <components-mime-type-guess >`
477
+ in case the guessers provided by the :doc: `Mime component </components/mime >`
478
+ don't fit your needs.
479
+
480
+ .. versionadded :: 4.3
481
+
482
+ The ``mime.mime_type_guesser `` tag was introduced in Symfony 4.3.
483
+
468
484
.. _dic_tags-monolog :
469
485
470
486
monolog.logger
You can’t perform that action at this time.
0 commit comments