mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Fix environment-based selection of Query Parser
This commit is contained in:
@@ -48,8 +48,8 @@ class SearchServiceProvider extends ServiceProvider
|
||||
{
|
||||
$this->app->bind(
|
||||
QueryParserInterface::class,
|
||||
static function () {
|
||||
$implementation = env('QUERY_PARSER_IMPLEMENTATION', 'default');
|
||||
static function (): GdbotsQueryParser|QueryParser {
|
||||
$implementation = config('search.query_parser');
|
||||
|
||||
return match($implementation) {
|
||||
'new' => app(QueryParser::class),
|
||||
|
@@ -253,4 +253,8 @@ return [
|
||||
'destination_balance_lt' => ['alias' => false, 'needs_context' => true],
|
||||
'destination_balance_is' => ['alias' => false, 'needs_context' => true],
|
||||
],
|
||||
/**
|
||||
* Which query parser to use - 'new' or 'legacy'
|
||||
*/
|
||||
'query_parser' => env('QUERY_PARSER_IMPLEMENTATION', 'legacy'),
|
||||
];
|
||||
|
Reference in New Issue
Block a user