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);