Disabled interface check for providers
authorAlexander Ebert <ebert@woltlab.com>
Fri, 21 Oct 2011 16:54:49 +0000 (18:54 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 21 Oct 2011 16:54:49 +0000 (18:54 +0200)
wcfsetup/install/files/lib/data/object/type/ObjectType.class.php

index e65d5d762699fe8a8f08c5294a09340d21eb5e38..e3ef46d0c081496e398829cf1139d047bfbe55ec 100644 (file)
@@ -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);
                                }