Register a dependency.
The identifier used to register the class in the DI container.
The dependency to register.
Identifier for more information on identifiers..
Register a dependency.
The identifier used to register the class in the DI container.
The dependency to register.
Optional
deprecated: trueA warning is logged when the dependency is resolved.
Identifier for more information on identifiers.
Register a dependency.
Param: identifier
The identifier used to register the class in the DI container.
See
Identifier for more information on identifiers.
Param: dependency
The dependency to register.
Param: deprecated
If true, the dependency is deprecated => a warning is logged when the dependency is resolved.