The central entity of the library. It holds provider bindings and resolves dependencies.
Optional
Custom logger function.
Name of the injector (useful for debugging).
Parent injector for composing injectors.
Creates a new binder and links it to the specified providers. If a provider is already bound, the binding is overridden.
The providers to bind.
Activates the injector and calls the given function with the provided arguments.
function which should be called
args which should be passed to the called function
Activates the injector and creates a new instance of the given class using the provided arguments.
Returns the value bound to the specified provider. Throws an exception if the value is not found.
Resolves specific providers to their values and assigns them to the instance's properties.
Returns the value bound to the specified provider, or the default value if the bound value is not found.
The central entity of the library. It holds provider bindings and resolves dependencies.