Skip to content

Commit 9292b87

Browse files
authored
Add information about debugging tagged services
Add documentations about debugging tagged services using `debug:container --tag`
1 parent 1a7913d commit 9292b87

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

service_container/debug.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ 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+
2439
Detailed Info about a Single Service
2540
------------------------------------
2641

0 commit comments

Comments
 (0)