From 58ed5565815bceb4910ed3b788a5e7625b7824d9 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 16 Jan 2017 12:54:59 +0100 Subject: [PATCH 1/2] Added a note about case-insensitiveness of service ids --- service_container.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/service_container.rst b/service_container.rst index ec992feddc8..354ed65dc91 100644 --- a/service_container.rst +++ b/service_container.rst @@ -154,6 +154,12 @@ later how you can configure a service that has multiple instances in the ``get()`` method to locate and retrieve the ``app.mailer`` service from the service container. +.. note:: + + Service identifiers are case-insensitive (``app.mailer`` and ``APP.Mailer`` + for example refer to the same service). This behavior was deprecated in + Symfony 3.3 and it will no longer work in Symfony 4.0. + .. _service-container-parameters: Service Parameters From 25d6871ca59fcc6423cc622b78a98b4e15cca9bd Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 17 Jan 2017 13:16:21 +0100 Subject: [PATCH 2/2] Note -> caution --- service_container.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_container.rst b/service_container.rst index 354ed65dc91..e3373a45a27 100644 --- a/service_container.rst +++ b/service_container.rst @@ -154,7 +154,7 @@ later how you can configure a service that has multiple instances in the ``get()`` method to locate and retrieve the ``app.mailer`` service from the service container. -.. note:: +.. caution:: Service identifiers are case-insensitive (``app.mailer`` and ``APP.Mailer`` for example refer to the same service). This behavior was deprecated in