We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 098360e commit d41c5fdCopy full SHA for d41c5fd
symfony/auto-add-missing.rst
@@ -22,3 +22,16 @@ Usage
22
23
That's it. You do not have to do anything more. Translations will automatically
24
pop up in your storage.
25
+
26
+Production environment
27
+----------------------
28
29
+Note: The ``TranslationDataCollector`` is not used in production environment (this file is linked with the profiler).
30
+For use in production, you need to decorate the translator :
31
32
+.. code-block:: yaml
33
34
+ translator.data_collector:
35
+ class: Symfony\Component\Translation\DataCollectorTranslator
36
+ decorates: translator
37
+ arguments: ['@translator.data_collector.inner']
0 commit comments