@@ -49,17 +49,21 @@ What other services are available? Find out by running:
49
49
50
50
$ php bin/console debug:autowiring
51
51
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
+ [...]
63
67
64
68
When you use these type-hints in your controller methods or inside your
65
69
:ref: `own services <service-container-creating-service >`, Symfony will automatically
@@ -261,18 +265,21 @@ type-hints by running:
261
265
262
266
$ php bin/console debug:autowiring
263
267
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
+ [...]
276
283
277
284
Handling Multiple Services
278
285
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments