Register a dependency by concrete class type.
A dependency registered by concrete class type can only be resolved by concrete class type. No qualifiers can be used when resolving dependencies which are registered by concrete type.
The default registration scope is "single instance" scope.
A registration is returned which can be used to change the registration scope.
Register and resolve a class by concrete type:
class Cat : Animal { ... } container.register!Cat;
singleInstance, newInstance, existingInstance
See Implementation
Register a dependency by concrete class type.
A dependency registered by concrete class type can only be resolved by concrete class type. No qualifiers can be used when resolving dependencies which are registered by concrete type.
The default registration scope is "single instance" scope.