mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Note that members of protected visibility can also be autowired
This commit is contained in:
parent
a99256e03c
commit
899e76b3c9
|
@ -83,7 +83,7 @@ auto exampleInstance = new ExampleClassB();
|
||||||
dependencies.autowire(exampleInstance);
|
dependencies.autowire(exampleInstance);
|
||||||
assert(exampleInstance.dependency !is null);
|
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:
|
Dependencies are automatically autowired when a class is resolved. So when you register ExampleClassB, its member, *dependency*, is automatically autowired:
|
||||||
```d
|
```d
|
||||||
|
|
Loading…
Reference in a new issue