Register a dependency by super type.
A dependency registered by super type can only be resolved by super type. A qualifier is typically used to resolve dependencies registered by super type.
The default registration scope is "single instance" scope.
Register and resolve by super type
class Cat : Animal { ... } container.register!(Animal, Cat);
singleInstance, newInstance, existingInstance, RegistrationOption
See Implementation
Register a dependency by super type.
A dependency registered by super type can only be resolved by super type. A qualifier is typically used to resolve dependencies registered by super type.
The default registration scope is "single instance" scope.