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:
Mike Bierlee 2014-12-14 19:20:35 +01:00
parent d07f11d6de
commit 2aef9a1760

View file

@ -99,7 +99,7 @@ class DependencyContainer {
if (!autowireStack.canFind(registration)) { if (!autowireStack.canFind(registration)) {
autowireStack ~= registration; autowireStack ~= registration;
this.autowire!(RegistrationType)(instance); this.autowire!(QualifierType)(cast(QualifierType)instance);
autowireStack.popBack(); autowireStack.popBack();
} }