Changeset 85

Show
Ignore:
Timestamp:
01/24/07 18:28:41 (2 years ago)
Author:
mikey
Message:

bugfix: use correct abstract type if a class loader is used

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/XJConf/definitions/AbstractTagDefinition.php

    r62 r85  
    102102         
    103103        $refClass = new ReflectionClass(get_class($instance)); 
    104         if (in_array($this->abstractType, array_keys($refClass->getInterfaces())) == true) { 
     104        if (null != $this->classLoader) { 
     105            $abstractType = $this->classLoader->getType($this->abstractType); 
     106        } else { 
     107            $abstractType = $this->abstractType; 
     108        } 
     109        if (in_array($abstractType, array_keys($refClass->getInterfaces())) == true) { 
    105110            return $instance; 
    106111        }