Initialize the container resolver with container bindings and options
Object containing all container bindings, values, swaps, hooks, and aliases
Container configuration options
Find if the resolver has a binding registered using the "bind", the "singleton", the "bindValue", or the "if" methods.
A registered binding is not always resolvable. When a binding key only has conditional bindings registered for it, this method returns true, but resolving it still fails if none of the conditions match.
The binding key to check for
Find if the resolver has a binding registered using the "bind", the "singleton", the "bindValue", or the "if" methods.
A registered binding is not always resolvable. When a binding key only has conditional bindings registered for it, this method returns true, but resolving it still fails if none of the conditions match.
The binding key to check for
Find if the resolver has all the bindings registered using the "bind", the "singleton", the "bindValue", or the "if" methods.
Array of binding keys to check for
Find if the resolver has all the bindings registered using the "bind", the "singleton", the "bindValue", or the "if" methods.
Array of binding keys to check for
Resolves binding in context of a parent. The method is same as the "make" method, but instead takes a parent class constructor. This is used internally for dependency resolution.
The parent class requesting the binding
The binding to resolve
OptionalruntimeValues: any[]
Optional runtime values for dependencies
Error creator function
Resolves the binding or constructor a class instance as follows.
The binding key or class constructor to resolve
OptionalruntimeValues: any[]
Optional runtime values for dependencies
OptionalcreateError: ErrorCreator
Error creator function
Resolves the binding or constructor a class instance as follows.
The binding key or class constructor to resolve
OptionalruntimeValues: any[]
Optional runtime values for dependencies
OptionalcreateError: ErrorCreator
Error creator function
Call a method on an object by injecting its dependencies. The method dependencies are resolved in the same manner as a class constructor dependencies.
The object instance containing the method
The method name to call
OptionalruntimeValues: any[]
Optional runtime values for method dependencies
Error creator function
Register a binding as a value. Values bound to the resolver are isolated from the container and only available within this resolver instance.
The binding key (string, symbol, or class constructor)
The pre-resolved value to bind
Register a binding as a value. Values bound to the resolver are isolated from the container and only available within this resolver instance.
Container resolver exposes the APIs to resolve bindings. You can think of resolver as an isolated container instance, with only the APIs to resolve bindings.