Skip to content

Commit 86a4de5

Browse files
committed
Reword
1 parent 674f0c9 commit 86a4de5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

profiler.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ method to access to its associated profile::
5151

5252
.. note::
5353

54-
To declare the profiler service you can refer to :ref:`Enabling the Profiler Conditionally <enabling_the_profiler_conditionally_tag>`.
54+
The ``profiler`` service will be :doc:`autowired </service_container/autowiring>`
55+
automatically when type-hinting any service argument with the
56+
:class:`Symfony\\Component\\HttpKernel\\Profiler\\Profiler` class.
5557

5658
When the profiler stores data about a request, it also associates a token with it;
5759
this token is available in the ``X-Debug-Token`` HTTP header of the response.

0 commit comments

Comments
 (0)