Rule engine and search engine now use the same operators; making them interchangeable.

This commit is contained in:
James Cole
2020-08-21 08:23:44 +02:00
parent 3081911eae
commit d69934ca8f
11 changed files with 141 additions and 165 deletions

View File

@@ -351,7 +351,7 @@ class FireflyValidator extends Validator
}
// and finally a "will match everything check":
$classes = app('config')->get('firefly.rule-triggers');
$classes = array_keys(config('firefly.search.operators'));;
/** @var TriggerInterface $class */
$class = $classes[$triggerType] ?? false;
if (false === $class) {