From 899e76b3c9d1db4889901fc8f755dbea48628ca2 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Mon, 15 Feb 2016 20:42:45 +0100 Subject: [PATCH] Note that members of protected visibility can also be autowired --- TUTORIAL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index 13bf1c0..46adac0 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -83,7 +83,7 @@ auto exampleInstance = new ExampleClassB(); dependencies.autowire(exampleInstance); assert(exampleInstance.dependency !is null); ``` -It is possible to autowire public and private members. +It is possible to autowire public as well as protected and private members. Dependencies are automatically autowired when a class is resolved. So when you register ExampleClassB, its member, *dependency*, is automatically autowired: ```d