Skip to content

Commit 31c4f19

Browse files
committed
minor symfony#16902 Changing monolog.logger to logger (ThomasLandauer)
This PR was submitted for the 6.1 branch but it was squashed and merged into the 4.4 branch instead. Discussion ---------- Changing `monolog.logger` to `logger` Reason: monolog isn't installed by default: https://symfony.com/doc/current/logging.html Commits ------- 1d5d3d2 Changing `monolog.logger` to `logger`
2 parents c87cbf8 + 1d5d3d2 commit 31c4f19

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

service_container.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,21 @@ What other services are available? Find out by running:
5757
5858
# this is just a *small* sample of the output...
5959
60-
Describes a logger instance.
61-
Psr\Log\LoggerInterface (monolog.logger)
60+
Autowirable Types
61+
=================
6262
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:
6564
66-
Interface for the session.
67-
Symfony\Component\HttpFoundation\Session\SessionInterface (session)
65+
Describes a logger instance.
66+
Psr\Log\LoggerInterface (logger)
6867
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)
7170
72-
[...]
71+
RouterInterface is the interface that all Router classes must implement.
72+
Symfony\Component\Routing\RouterInterface (router.default)
73+
74+
[...]
7375
7476
When you use these type-hints in your controller methods or inside your
7577
:ref:`own services <service-container-creating-service>`, Symfony will automatically

0 commit comments

Comments
 (0)