File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,8 @@ MIME types and file name extensions::
255
255
These methods return arrays with one or more elements. The element position
256
256
indicates its priority, so the first returned extension is the preferred one.
257
257
258
+ .. _components-mime-type-guess :
259
+
258
260
Guessing the MIME Type
259
261
~~~~~~~~~~~~~~~~~~~~~~
260
262
Original file line number Diff line number Diff line change @@ -26,7 +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 "mime type guessing"
29
+ `mime.mime_type_guesser `_ Add your own logic for guessing MIME types
30
30
`monolog.logger `_ Logging with a custom logging channel
31
31
`monolog.processor `_ Add a custom processor for logging
32
32
`routing.loader `_ Register a custom service that loads routes
@@ -472,16 +472,15 @@ of the profiler to delete all their information.
472
472
mime.mime_type_guesser
473
473
----------------------
474
474
475
- **Purpose **: Add your own logic for "mime type guessing"
475
+ **Purpose **: Add your own logic for guessing MIME types
476
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) .
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
480
481
- .. seealso ::
481
+ .. versionadded :: 4.3
482
482
483
- For information on how to create your own mime type guesser, see
484
- :doc: `/components/mime/guessing-the-mime-type `.
483
+ The ``mime.mime_type_guesser `` tag was introduced in Symfony 4.3.
485
484
486
485
.. _dic_tags-monolog :
487
486
You can’t perform that action at this time.
0 commit comments