10000 Updated the output of debug:autowiring · symfony/symfony-docs@6dcf691 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6dcf691

Browse files
committed
Updated the output of debug:autowiring
1 parent f4b9666 commit 6dcf691

File tree

2 files changed

+45
-33
lines changed

2 files changed

+45
-33
lines changed

quick_tour/the_architecture.rst

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,21 @@ What other possible classes or interfaces could you use? Find out by running:
6363
6464
$ php bin/console debug:autowiring
6565
66-
=============================================================== =====================================
67-
Class/Interface Type Alias Service ID
68-
=============================================================== =====================================
69-
``Psr\Cache\CacheItemPoolInterface`` alias for "cache.app.recorder"
70-
``Psr\Log\LoggerInterface`` alias for "monolog.logger"
71-
``Symfony\Component\EventDispatcher\EventDispatcherInterface`` alias for "debug.event_dispatcher"
72-
``Symfony\Component\HttpFoundation\RequestStack`` alias for "request_stack"
73-
``Symfony\Component\HttpFoundation\Session\SessionInterface`` alias for "session"
74-
``Symfony\Component\Routing\RouterInterface`` alias for "router.default"
75-
=============================================================== =====================================
66+
# this is just a *small* sample of the output...
67+
68+
Describes a logger instance.
69+
Psr\Log\LoggerInterface (monolog.logger)
70+
71+
Request stack that controls the lifecycle of requests.
72+
Symfony\Component\HttpFoundation\RequestStack (request_stack)
73+
74+
Interface for the session.
75+
Symfony\Component\HttpFoundation\Session\SessionInterface (session)
76+
77+
RouterInterface is the interface that all Router classes must implement.
78+
Symfony\Component\Routing\RouterInterface (router.default)
79+
80+
[...]
7681
7782
This is just a short summary of the full list! And as you add more packages, this
7883
list of tools will grow!

service_container.rst

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,21 @@ What other services are available? Find out by running:
4949
5050
$ php bin/console debug:autowiring
5151
52-
# this is just a *small* sample of the output...
53-
========================================================== ==================================
54-
Class/Interface Type Alias Service ID
55-
========================================================== ==================================
56-
Psr\Cache\CacheItemPoolInterface alias for "cache.app.recorder"
57-
Psr\Log\LoggerInterface alias for "monolog.logger"
58-
Symfony\Component\EventDispatcher\EventDispatcherInterface alias for "debug.event_dispatcher"
59-
Symfony\Component\HttpFoundation\RequestStack alias for "request_stack"
60-
Symfony\Component\HttpFoundation\Session\SessionInterface alias for "session"
61-
Symfony\Component\Routing\RouterInterface alias for "router.default"
62-
========================================================== ===================== 8000 =============
52+
# this is just a *small* sample of the output...
53+
54+
Describes a logger instance.
55+
Psr\Log\LoggerInterface (monolog.logger)
56+
57+
Request stack that controls the lifecycle of requests.
58+
Symfony\Component\HttpFoundation\RequestStack (request_stack)
59+
60+
Interface for the session.
61+
Symfony\Component\HttpFoundation\Session\SessionInterface (session)
62+
63+
RouterInterface is the interface that all Router classes must implement.
64+
Symfony\Component\Routing\RouterInterface (router.default)
65+
66+
[...]
6367
6468
When you use these type-hints in your controller methods or inside your
6569
:ref:`own services <service-container-creating-service>`, Symfony will automatically
@@ -261,18 +265,21 @@ type-hints by running:
261265
262266
$ php bin/console debug:autowiring
263267
264-
This command is your best friend. This is a small subset of the output:
265-
266-
=============================================================== =====================================
267-
Class/Interface Type Alias Service ID
268-
=============================================================== =====================================
269-
``Psr\Cache\CacheItemPoolInterface`` alias for "cache.app.recorder"
270-
``Psr\Log\LoggerInterface`` alias for "monolog.logger"
271-
``Symfony\Component\EventDispatcher\EventDispatcherInterface`` alias for "debug.event_dispatcher"
272-
``Symfony\Component\HttpFoundation\RequestStack`` alias for "request_stack"
273-
``Symfony\Component\HttpFoundation\Session\SessionInterface`` alias for "session"
274-
``Symfony\Component\Routing\RouterInterface`` alias for "router.default"
275-
=============================================================== =====================================
268+
# this is just a *small* sample of the output...
269+
270+
Describes a logger instance.
271+
Psr\Log\LoggerInterface (monolog.logger)
272+
273+
Request stack that controls the lifecycle of requests.
274+
Symfony\Component\HttpFoundation\RequestStack (request_stack)
275+
276+
Interface for the session.
277+
Symfony\Component\HttpFoundation\Session\SessionInterface (session)
278+
279+
RouterInterface is the interface that all Router classes must implement.
280+
Symfony\Component\Routing\RouterInterface (router.default)
281+
282+
[...]
276283
277284
Handling Multiple Services
278285
~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)
0