Skip to content

Commit 2bde3bc

Browse files
committed
Update behaviors descriptions
1 parent e2d0696 commit 2bde3bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dependency_injection.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ By default, an exception is throw when a service does not exist. You can overrid
188188

189189
Possible behaviors are:
190190

191-
* ``ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE``: Throws runtime exception
192-
* ``ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE``: Throws an exception **default**
191+
* ``ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE``: Throws an exception at compilation time **default**
193192
* ``ContainerInterface::NULL_ON_INVALID_REFERENCE``: Returns null
194193
* ``ContainerInterface::IGNORE_ON_INVALID_REFERENCE``: Ignores the wrapping command asking for the reference (for instance, ignore a setter if the service does not exist)
195194
* ``ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE``: Ignores/returns null for uninitialized services or invalid references
195+
* ``ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE``: Throws an exception at runtime, when trying to access the missing service
196196

197197
Avoiding your Code Becoming Dependent on the Container
198198
------------------------------------------------------

0 commit comments

Comments
 (0)