From ad5695c7740b506e8e4397a94a9f3f4ca218bc17 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Sat, 21 Feb 2015 02:16:24 +0100 Subject: [PATCH] Rename parameter InterfaceType -> SuperType Direct ancestor types, which are not neccesarily interfaces, can also be used as registration type --- source/poodinis/container.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/poodinis/container.d b/source/poodinis/container.d index 3cb4ae3..24687e3 100644 --- a/source/poodinis/container.d +++ b/source/poodinis/container.d @@ -98,8 +98,8 @@ class DependencyContainer { * * See_Also: singleInstance, newInstance, existingInstance */ - public Registration register(InterfaceType, ConcreteType : InterfaceType)() { - TypeInfo registeredType = typeid(InterfaceType); + public Registration register(SuperType, ConcreteType : SuperType)() { + TypeInfo registeredType = typeid(SuperType); TypeInfo_Class concreteType = typeid(ConcreteType); debug(poodinisVerbose) {