mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT: Improved performance of ClassInfo::classImplements
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@83440 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
93d45d9b4d
commit
c7ac19f144
@ -168,7 +168,7 @@ class ClassInfo {
|
|||||||
*/
|
*/
|
||||||
static function classImplements($className, $interfaceName) {
|
static function classImplements($className, $interfaceName) {
|
||||||
global $_ALL_CLASSES;
|
global $_ALL_CLASSES;
|
||||||
return isset($_ALL_CLASSES['implementors'][$interfaceName]) ? in_array($className, $_ALL_CLASSES['implementors'][$interfaceName]) : false;
|
return isset($_ALL_CLASSES['implementors'][$interfaceName][$className]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user