Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94a157a

Browse files
committed
minor #7374 Added a note about case-insensitiveness of service ids (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #7374). Discussion ---------- Added a note about case-insensitiveness of service ids This fixes #7367. I propose to add just a small note because my guess it that the case-insensitive behavior is unused by 99.99% of developers and most of them are even unaware of it. Commits ------- 0071fae Added a note about case-insensitiveness of service ids
2 parents 52e558d + 0071fae commit 94a157a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

service_container.rst

Lines changed: 6 additions & 0 deletions
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)