Skip to content

[DependencyInjection] Fix a RST syntax issue #20965

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

Merged
merged 1 commit into from
May 15, 2025
Merged
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
20 changes: 10 additions & 10 deletions components/dependency_injection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,16 @@ You can override this behavior as follows::

These are all the possible behaviors:

* ``ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE``: throws an exception
at compile time (this is the **default** behavior);
* ``ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE``: throws an
exception at runtime, when trying to access the missing service;
* ``ContainerInterface::NULL_ON_INVALID_REFERENCE``: returns ``null``;
* ``ContainerInterface::IGNORE_ON_INVALID_REFERENCE``: ignores the wrapping
command asking for the reference (for instance, ignore a setter if the service
does not exist);
* ``ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE``: ignores/returns
``null`` for uninitialized services or invalid references.
* ``ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE``: throws an exception
at compile time (this is the **default** behavior);
* ``ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE``: throws an
exception at runtime, when trying to access the missing service;
* ``ContainerInterface::NULL_ON_INVALID_REFERENCE``: returns ``null``;
* ``ContainerInterface::IGNORE_ON_INVALID_REFERENCE``: ignores the wrapping
command asking for the reference (for instance, ignore a setter if the service
does not exist);
* ``ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE``: ignores/returns
``null`` for uninitialized services or invalid references.

Avoiding your Code Becoming Dependent on the Container
------------------------------------------------------
Expand Down