From 1d5d3d27de0287693b6741b7efd63f4ebbfc7c12 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Mon, 20 Jun 2022 18:46:54 +0200 Subject: [PATCH] Changing `monolog.logger` to `logger` --- service_container.rst | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/service_container.rst b/service_container.rst index b976736f9d6..9d16808f6ca 100644 --- a/service_container.rst +++ b/service_container.rst @@ -57,19 +57,21 @@ What other services are available? Find out by running: # this is just a *small* sample of the output... - Describes a logger instance. - Psr\Log\LoggerInterface (monolog.logger) + Autowirable Types + ================= - Request stack that controls the lifecycle of requests. - Symfony\Component\HttpFoundation\RequestStack (request_stack) + The following classes & interfaces can be used as type-hints when autowiring: - Interface for the session. - Symfony\Component\HttpFoundation\Session\SessionInterface (session) + Describes a logger instance. + Psr\Log\LoggerInterface (logger) - RouterInterface is the interface that all Router classes must implement. - Symfony\Component\Routing\RouterInterface (router.default) + Request stack that controls the lifecycle of requests. + Symfony\Component\HttpFoundation\RequestStack (request_stack) - [...] + RouterInterface is the interface that all Router classes must implement. + Symfony\Component\Routing\RouterInterface (router.default) + + [...] When you use these type-hints in your controller methods or inside your :ref:`own services `, Symfony will automatically