ENHANCEMENT: has_extension() should allow injector overrides

This commit is contained in:
Aaron Carlino 2019-03-05 16:59:32 +13:00
parent 075716f80d
commit 39a29fa2f6

View File

@ -388,6 +388,9 @@ trait Extensible
if (!$strict && is_subclass_of($extension, $requiredExtension)) {
return true;
}
if (Injector::inst()->get($extension) instanceof $requiredExtension) {
return true;
}
}
return false;