mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +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(
|
$this->app->bind(
|
||||||
QueryParserInterface::class,
|
QueryParserInterface::class,
|
||||||
static function () {
|
static function (): GdbotsQueryParser|QueryParser {
|
||||||
$implementation = env('QUERY_PARSER_IMPLEMENTATION', 'default');
|
$implementation = config('search.query_parser');
|
||||||
|
|
||||||
return match($implementation) {
|
return match($implementation) {
|
||||||
'new' => app(QueryParser::class),
|
'new' => app(QueryParser::class),
|
||||||
|
@@ -253,4 +253,8 @@ return [
|
|||||||
'destination_balance_lt' => ['alias' => false, 'needs_context' => true],
|
'destination_balance_lt' => ['alias' => false, 'needs_context' => true],
|
||||||
'destination_balance_is' => ['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