From aa8aef5c066d3bb7d982cd397c45f13d14931810 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Wed, 23 Dec 2015 17:57:33 +0100 Subject: [PATCH] Alter tutorial do put less emphasis on registration scopes --- TUTORIAL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index 7a9d7de..644ccb2 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -41,9 +41,9 @@ auto exampleClassInstance = dependencies.resolve!ExampleInterface; auto exampleClassInstance2 = dependencies.resolve!ExampleClass; // A ResolveException is thrown ``` -Dependency scopes +Dependency creation behaviour ----------------- -With dependency scopes, you can control how a dependency is resolved. The scope determines which instance is returned, be it the same each time or a new one. The following scopes are available: +You can control how a dependency is resolved by specifying a creation scope during registration. The scope determines which instance is returned, be it the same each time or a new one. The following scopes are available: * Resolve a dependency using a single instance (default):