This commit is contained in:
Mike Bierlee 2016-08-23 21:29:33 +02:00
parent 1a51e2081e
commit 6f6cd2381c

View file

@ -86,7 +86,7 @@ assert(exampleInstance.dependency !is null);
```
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:
Dependencies are automatically autowired when a class is resolved. So when you resolve `ExampleClassB`, its member `dependency` is automatically autowired:
```d
dependencies.register!ExampleClassA;
dependencies.register!ExampleClassB;