Skip to content

Commit 089f71f

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: Improve the documentation with a link for the profile service declaration
2 parents b6ed5b3 + 70345ee commit 089f71f

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
@@ -54,6 +54,12 @@ method to access to its associated profile::
5454
// ... $profiler is the 'profiler' service
5555
$profile = $profiler->loadProfileFromResponse($response);
5656

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

0 commit comments

Comments
 (0)