Move search operators to dedicated file and add lots of new ones.

This commit is contained in:
James Cole
2022-03-20 07:42:39 +01:00
parent c000e090fe
commit ba10aa5ca5
12 changed files with 355 additions and 218 deletions

View File

@@ -34,7 +34,7 @@ trait GetRuleConfiguration
*/
protected function getTriggers(): array
{
return array_keys(config('firefly.search.operators'));
return array_keys(config('search.operators'));
}
/**
@@ -42,7 +42,7 @@ trait GetRuleConfiguration
*/
protected function getTriggersWithContext(): array
{
$list = config('firefly.search.operators');
$list = config('search.operators');
$return = [];
foreach ($list as $key => $info) {
if (true === $info['needs_context']) {