File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ that extension to improve the guessing performance.
272
272
Adding a MIME Type Guesser
273
273
..........................
274
274
275
- You can register your own MIME type guesser by creating a class that implements
275
+ You can add your own MIME type guesser by creating a class that implements
276
276
:class: `Symfony\\ Component\\ Mime\\ MimeTypeGuesserInterface `::
277
277
278
278
namespace App;
@@ -296,6 +296,12 @@ You can register your own MIME type guesser by creating a class that implements
296
296
}
297
297
}
298
298
299
+ MIME type guessers must be :ref: `registered as services <service-container-creating-service >`
300
+ and :doc: `tagged </service_container/tags >` with the ``mime.mime_type_guesser `` tag.
301
+ If you're using the
302
+ :ref: `default services.yaml configuration <service-container-services-load-example >`,
303
+ this is already done for you, thanks to :ref: `autoconfiguration <services-autoconfigure >`.
304
+
299
305
.. _`MIME` : https://en.wikipedia.org/wiki/MIME
300
306
.. _`MIME types` : https://en.wikipedia.org/wiki/Media_type
301
307
.. _`fileinfo extension` : https://www.php.net/fileinfo
You can’t perform that action at this time.
0 commit comments