Skip to content

Commit 63c2a8d

Browse files
BOB41K1987javiereguiluz
authored andcommitted
[DependencyInjection] Add information about debugging tagged services
1 parent 1a7913d commit 63c2a8d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

service_container/debug.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,33 @@ To see a list of all of the available types that can be used for autowiring, run
2121
2222
$ php bin/console debug:autowiring
2323
24+
How to Debug Service Tags & List Tagged Services
25+
------------------------------------
26+
You can find out what services are tagged with a specific tag using the following command:
27+
28+
.. code-block:: terminal
29+
30+
$ php bin/console debug:container --tag=kernel.event_listener
31+
32+
Partial search is also available:
33+
34+
.. code-block:: terminal
35+
36+
$ php bin/console debug:container --tag=kernel
37+
38+
Select one of the following tags to display its information:
39+
[0] kernel.event_listener
40+
[1] kernel.event_subscriber
41+
[2] kernel.reset
42+
[3] kernel.cache_warmer
43+
[4] kernel.locale_aware
44+
[5] kernel.fragment_renderer
45+
[6] kernel.cache_clearer
46+
47+
.. versionadded:: 6.2
48+
49+
The partial search was introduced in Symfony 6.2.
50+
2451
Detailed Info about a Single Service
2552
------------------------------------
2653

0 commit comments

Comments
 (0)