Resolve a dependency
The identifier of the dependency
Optionalnecessary: booleanIf true, throws an error if the dependency is not found
The resolved dependency or undefined if the dependency is not found
Resolve a necessary dependency.
The identifier of the dependency.
Optionalnecessary: trueIf true, throws an error if the dependency is not found.
The resolved dependency.
Resolve a non necessary dependency
The identifier of the dependency
Optionalnecessary: falseNot necessary, does not throw an error if the dependency is not found.
The resolved dependency or undefined if the dependency is not found
Resolve method for static and instance Dependency Injection Container.