mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Autowire using the qualifier type when resolving dependencies
This will make sure the members of sub-types are also autowired, when a qualifier is given.
This commit is contained in:
parent
d07f11d6de
commit
2aef9a1760
|
@ -99,7 +99,7 @@ class DependencyContainer {
|
|||
|
||||
if (!autowireStack.canFind(registration)) {
|
||||
autowireStack ~= registration;
|
||||
this.autowire!(RegistrationType)(instance);
|
||||
this.autowire!(QualifierType)(cast(QualifierType)instance);
|
||||
autowireStack.popBack();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue