From 19c84c59b110beeb2b5ffda50568048b3b61dd98 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 21 Oct 2011 18:54:49 +0200 Subject: [PATCH] Disabled interface check for providers --- .../files/lib/data/object/type/ObjectType.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php index e65d5d7626..e3ef46d0c0 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php @@ -34,9 +34,16 @@ class ObjectType extends ProcessibleDatabaseObject { if (!class_exists($this->className)) { throw new SystemException("Unable to find class '".$this->className."'"); } + /* + TODO: + Why should the class implement IDatabaseObjectProcessor? Given the fact, + that the default implementation IObjectTypeProvider does not decorate the + objects itself - instead it provides methods to receive the required objects. + if (!ClassUtil::isInstanceOf($this->className, 'wcf\data\IDatabaseObjectProcessor')) { throw new SystemException("'".$this->className."' should implement wcf\data\IDatabaseObjectProcessor"); } + */ if (($definitionInterface = ObjectTypeCache::getInstance()->getDefinition($this->definitionID)->interfaceName) && !ClassUtil::isInstanceOf($this->className, $definitionInterface)) { throw new SystemException("'".$this->className."' should implement ".$definitionInterface); } -- 2.20.1