Skip to content

Added a note about case-insensitiveness of service ids #7374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

.. caution::

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
Expand Down