From b7eee5e51f7e0aeccfbe46a69fe7028f7e0f98d5 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Thu, 11 Feb 2016 20:40:16 +0100 Subject: [PATCH] Fix typos of enum RegistrationOption Fixes #9 --- TUTORIAL.md | 4 ++-- source/poodinis/container.d | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index 867d296..8c7ca35 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -23,7 +23,7 @@ In the above example, dependencies on the concrete class and interface will reso If you want to prevent registrations from being both registered by interface and concrete type, use the "doNotAddConcreteTypeRegistration" option when registering: ```d -dependencies.register!(ExampleInterface, ExampleClass)([RegistrationOptions.doNotAddConcreteTypeRegistration]); +dependencies.register!(ExampleInterface, ExampleClass)([RegistrationOption.doNotAddConcreteTypeRegistration]); ``` Resolving dependencies @@ -207,6 +207,6 @@ Persistent Registration Options ------------------------------- If you want registration options to be persistent (applicable for every call to register()), you can use the container method setPersistentRegistrationOptions(): ```d -dependencies.setPersistentRegistrationOptions(RegistrationOption.DO_NOT_ADD_CONCRETE_TYPE_REGISTRATION); // Sets the option +dependencies.setPersistentRegistrationOptions(RegistrationOption.doNotAddConcreteTypeRegistration); // Sets the option dependencies.unsetPersistentRegistrationOptions(); // Clears the persistentent options ``` \ No newline at end of file diff --git a/source/poodinis/container.d b/source/poodinis/container.d index 5bfdf23..82a80d8 100644 --- a/source/poodinis/container.d +++ b/source/poodinis/container.d @@ -137,7 +137,7 @@ synchronized class DependencyContainer { * container.register!(Animal, Cat); * --- * - * See_Also: singleInstance, newInstance, existingInstance, RegistrationOptions + * See_Also: singleInstance, newInstance, existingInstance, RegistrationOption */ public Registration register(SuperType, ConcreteType : SuperType)(RegistrationOption[] options = []) { TypeInfo registeredType = typeid(SuperType);