Skip to content

Commit e512a7b

Browse files
Adding heading to code sample
1 parent 4871cbe commit e512a7b

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

service_container.rst

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,21 @@ What other services are available? Find out by running:
5858
5959
# this is just a *small* sample of the output...
6060
61-
Describes a logger instance.
62-
Psr\Log\LoggerInterface (logger)
61+
Autowirable Types
62+
=================
6363
64-
Request stack that controls the lifecycle of requests.
65-
Symfony\Component\HttpFoundation\RequestStack (request_stack)
64+
The following classes & interfaces can be used as type-hints when autowiring:
6665
67-
RouterInterface is the interface that all Router classes must implement.
68-
Symfony\Component\Routing\RouterInterface (router.default)
66+
Describes a logger instance.
67+
Psr\Log\LoggerInterface (logger)
6968
70-
[...]
69+
Request stack that controls the lifecycle of requests.
70+
Symfony\Component\HttpFoundation\RequestStack (request_stack)
71+
72+
RouterInterface is the interface that all Router classes must implement.
73+
Symfony\Component\Routing\RouterInterface (router.default)
74+
75+
[...]
7176
7277
When you use these type-hints in your controller methods or inside your
7378
:ref:`own services <service-container-creating-service>`, Symfony will automatically

0 commit comments

Comments
 (0)