mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Merge branch '3' into 4.0
This commit is contained in:
commit
095c2fd785
@ -105,6 +105,9 @@ abstract class SearchVariant
|
||||
$ref = new ReflectionClass($variantclass);
|
||||
if ($ref->isInstantiable()) {
|
||||
$variant = singleton($variantclass);
|
||||
// reassign actual class since Injector could be involved when creating the singleton
|
||||
$variantclass = get_class($variant);
|
||||
|
||||
if ($variant->appliesToEnvironment()) {
|
||||
$concrete[$variantclass] = $variant;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user