Skip to content

Commit 0071fae

Browse files
javiereguiluzxabbuh
authored andcommitted
Added a note about case-insensitiveness of service ids
1 parent c45a7f2 commit 0071fae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

service_container.rst

+6
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ later how you can configure a service that has multiple instances in the
154154
``get()`` method to locate and retrieve the ``app.mailer`` service from
155155
the service container.
156156

157+
.. caution::
158+
159+
Service identifiers are case-insensitive (``app.mailer`` and ``APP.Mailer``
160+
for example refer to the same service). This behavior was deprecated in
161+
Symfony 3.3 and it will no longer work in Symfony 4.0.
162+
157163
.. _service-container-parameters:
158164

159165
Service Parameters

0 commit comments

Comments
 (0)