We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a75ae9a + 86a4de5 commit 70345eeCopy full SHA for 70345ee
profiler.rst
@@ -58,6 +58,12 @@ method to access to its associated profile::
58
// ... $profiler is the 'profiler' service
59
$profile = $profiler->loadProfileFromResponse($response);
60
61
+.. note::
62
+
63
+ The ``profiler`` service will be :doc:`autowired </service_container/autowiring>`
64
+ automatically when type-hinting any service argument with the
65
+ :class:`Symfony\\Component\\HttpKernel\\Profiler\\Profiler` class.
66
67
When the profiler stores data about a request, it also associates a token with it;
68
this token is available in the ``X-Debug-Token`` HTTP header of the response.
69
Using this token, you can access the profile of any past response thanks to the
0 commit comments