Skip to content

Commit 70345ee

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: Reword Improve the documentation with a link for the profile service declaration
2 parents a75ae9a + 86a4de5 commit 70345ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

profiler.rst

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ method to access to its associated profile::
5858
// ... $profiler is the 'profiler' service
5959
$profile = $profiler->loadProfileFromResponse($response);
6060

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+
6167
When the profiler stores data about a request, it also associates a token with it;
6268
this token is available in the ``X-Debug-Token`` HTTP header of the response.
6369
Using this token, you can access the profile of any past response thanks to the

0 commit comments

Comments
 (0)