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