From 2a4004856f4e07db9ba9bb21d196ae594143b7b7 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Mon, 8 Aug 2016 22:22:13 +0200 Subject: [PATCH] Deprecate global autowiring function --- source/poodinis/autowire.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/poodinis/autowire.d b/source/poodinis/autowire.d index ef4a743..1fe1ed9 100644 --- a/source/poodinis/autowire.d +++ b/source/poodinis/autowire.d @@ -194,8 +194,9 @@ private QualifierType createOrResolveInstance(MemberType, QualifierType, bool cr * Autowire the given instance using the globally available dependency container. * * See_Also: DependencyContainer + * Deprecated: Using the global container is undesired. See DependencyContainer.getInstance(). */ -public void globalAutowire(Type)(Type instance) { +public deprecated void globalAutowire(Type)(Type instance) { DependencyContainer.getInstance().autowire(instance); }