diff --git a/README.md b/README.md index ba10c11..7c8c08e 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Features * Application contexts: Control the creation of dependencies manually through factory methods. * Multi-threadable: Dependency containers return the same dependencies across all threads. * Minimal set-up: Creation and injection of conventional classes requires almost no manual dependency configuration. -* Well-tested: Developed test-driven, a great number of scenarios are tested as part of the test suite. +* Well-tested: Developed test-driven, a great number of scenarios are tested as part of the test suite. See the [TUTORIAL.md](TUTORIAL.md) and [examples](example) for a complete walkthrough of all features. Getting started @@ -35,7 +35,7 @@ import poodinis; class Driver {} -interface Database{}; +interface Database {}; class RelationalDatabase : Database { private Driver driver; @@ -59,7 +59,7 @@ void main() { auto writer = dependencies.resolve!DataWriter; } ``` -Set-up can further be reduced by enabling "Register on resolve". For more details and examples, see the [examples](example) directory. +Dependency set-up can further be reduced by enabling "Register on resolve". For more details and examples, see the [examples](example) directory. Documentation ------------- diff --git a/TUTORIAL.md b/TUTORIAL.md index 7eba16b..99407b2 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -132,7 +132,7 @@ Classes with multiple constructors can be injected. The following rules apply to * When a constructor with an empty parameter list is found, no other constructors are attempted (and nothing is injected). This can be used to explicitly prevent constructor injection. * When no injectable constructor is found an InstanceCreationException will be thrown on resolve. -If the constructors of a class are not suitable for injection, you could manually configure its creation using Application Contexts (see chapter further down). +If the constructors of a class are not suitable for injection, you could manually configure its creation using Application Contexts (see chapter further down). Constructor injection has the advantage of not having to import Poodinis throughout your application. Circular dependencies diff --git a/example/README.md b/example/README.md index a2b5cf1..ad8de29 100644 --- a/example/README.md +++ b/example/README.md @@ -1,4 +1,4 @@ -To build any of these examples, specify the relevant DUB configuration when building with DUB: +To build any of these examples, specify the relevant DUB configuration when building Poodinis with DUB: ``` dub build --build=release --config=Example ``` diff --git a/example/quickstart/app.d b/example/quickstart/app.d index b5d21ab..15c3117 100644 --- a/example/quickstart/app.d +++ b/example/quickstart/app.d @@ -9,7 +9,7 @@ import poodinis; class Driver {} -interface Database{}; +interface Database {}; class RelationalDatabase : Database { private Driver driver;