Skip to content

Commit a9d56c3

Browse files
committed
Minor tweaks
1 parent e81d501 commit a9d56c3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

profiler/data_collector.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ request::
7979
:doc:`/testing/profiling`) so it's recommended to return a string which is
8080
short, lowercase and without white spaces.
8181

82-
Note that the data collect is triggered belatedly during the :ref:`kernel.response <component-http-kernel-kernel-response>` event. If you need to collect data that is only available
83-
later, you should implement :class:`Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface` and its :method:`Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface::lateCollect` method which is invoked just before
84-
the profiler data serialization (during :ref:`kernel.terminate <component-http-kernel-kernel-terminate>` phase).
82+
The ``collect()`` method is called during the :ref:`kernel.response <component-http-kernel-kernel-response>`
83+
event. If you need to collect data that is only available later, implement
84+
:class:`Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface`
85+
and define the ``lateCollect()`` method, which is invoked just before the profiler
86+
data serialization (during :ref:`kernel.terminate <component-http-kernel-kernel-terminate>` event).
8587

8688
.. _data_collector_tag:
8789

0 commit comments

Comments
 (0)