From d2ac2ef0aea39441caa2fd871f890590915327f1 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 15 May 2025 12:56:12 +0200 Subject: [PATCH] [DependencyInjection] Fix a RST syntax issue --- components/dependency_injection.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/components/dependency_injection.rst b/components/dependency_injection.rst index 93e8af711cf..d146f553a0c 100644 --- a/components/dependency_injection.rst +++ b/components/dependency_injection.rst @@ -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 ------------------------------------------------------