FIX make class loader classExists check interface_exists as per docs

This commit is contained in:
Daniel Hensby 2015-02-14 22:02:50 +00:00
parent 25a060ffc0
commit bee642a6b9

View File

@ -95,13 +95,13 @@ class SS_ClassLoader {
}
/**
* Returns true if a class name exists in the manifest.
* Returns true if a class or interface name exists in the manifest.
*
* @param string $class
* @return bool
*/
public function classExists($class) {
return class_exists($class, false) || $this->getItemPath($class);
return class_exists($class, false) || interface_exists($class, false) || $this->getItemPath($class);
}
}