You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: profiler/data_collector.rst
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -79,9 +79,11 @@ request::
79
79
:doc:`/testing/profiling`) so it's recommended to return a string which is
80
80
short, lowercase and without white spaces.
81
81
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
0 commit comments