Injects the instance associated with the given class.
Throws an error if the class is not registered in the container.
Injects all instances provided by the registrations associated with the given class.
Throws an error if the class is not registered in the container.
Injects the instance associated with the given class,
or undefined
if the class is not registered in the container.
Injects all instances provided by the registrations associated with the given class, or an empty array if the class is not registered in the container.
Injector API.