File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -57,19 +57,21 @@ What other services are available? Find out by running:
57
57
58
58
# this is just a *small* sample of the output...
59
59
60
- Describes a logger instance.
61
- Psr\Log\LoggerInterface (monolog.logger)
60
+ Autowirable Types
61
+ =================
62
62
63
- Request stack that controls the lifecycle of requests.
64
- Symfony\Component\HttpFoundation\RequestStack (request_stack)
63
+ The following classes & interfaces can be used as type-hints when autowiring:
65
64
66
- Interface for the session .
67
- Symfony\Component\HttpFoundation\Session\SessionInterface (session )
65
+ Describes a logger instance .
66
+ Psr\Log\LoggerInterface (logger )
68
67
69
- RouterInterface is the interface that all Router classes must implement .
70
- Symfony\Component\Routing\RouterInterface (router.default )
68
+ Request stack that controls the lifecycle of requests .
69
+ Symfony\Component\HttpFoundation\RequestStack (request_stack )
71
70
72
- [...]
71
+ RouterInterface is the interface that all Router classes must implement.
72
+ Symfony\Component\Routing\RouterInterface (router.default)
73
+
74
+ [...]
73
75
74
76
When you use these type-hints in your controller methods or inside your
75
77
:ref: `own services <service-container-creating-service >`, Symfony will automatically
You can’t perform that action at this time.
0 commit comments