Merge pull request #3904 from dhensby/pulls/class-exists-fix

FIX make class loader classExists check interface_exists as per docs
This commit is contained in:
Will Rossiter 2015-03-03 14:31:11 +13:00
commit e3478e96fd

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);
}
}