Remove decoration

This commit is contained in:
Mike Bierlee 2016-02-15 20:40:20 +01:00
parent af5df7a26c
commit a99256e03c

View file

@ -53,18 +53,18 @@ You can control how a dependency is resolved by specifying a creation scope duri
* Resolve a dependency using a single instance (default): * Resolve a dependency using a single instance (default):
```d ```d
dependencies.register!(ExampleClass).singleInstance(); dependencies.register!ExampleClass.singleInstance();
``` ```
* Resolve a dependency with a new instance each time it is resolved: * Resolve a dependency with a new instance each time it is resolved:
```d ```d
dependencies.register!(ExampleClass).newInstance(); dependencies.register!ExampleClass.newInstance();
``` ```
* Resolve a dependency using a pre-existing instance * Resolve a dependency using a pre-existing instance
```d ```d
auto preExistingInstance = new ExampleClass(); auto preExistingInstance = new ExampleClass();
dependencies.register!(ExampleClass).existingInstance(preExistingInstance); dependencies.register!ExampleClass.existingInstance(preExistingInstance);
``` ```
Autowiring Autowiring