mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Add caveat
This commit is contained in:
parent
2cc8f3d68a
commit
af5df7a26c
|
@ -32,7 +32,7 @@ To manually resolve a dependency, all you have to do is resolve the dependency's
|
||||||
```d
|
```d
|
||||||
auto exampleClassInstance = dependencies.resolve!ExampleClass;
|
auto exampleClassInstance = dependencies.resolve!ExampleClass;
|
||||||
```
|
```
|
||||||
If the class is registered by interface and not by concrete type, you can still resolve the class by concrete type:
|
If the class is registered by interface and not by concrete type, you can still resolve the class by concrete type (unless doNotAddConcreteTypeRegistration is applied):
|
||||||
|
|
||||||
```d
|
```d
|
||||||
auto exampleClassInstance = dependencies.resolve!ExampleInterface;
|
auto exampleClassInstance = dependencies.resolve!ExampleInterface;
|
||||||
|
|
Loading…
Reference in a new issue