mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +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),
|
||||
|
Reference in New Issue
Block a user