rm CachedRetriever.php

add second shopsearch
This commit is contained in:
team 1
2026-04-19 14:20:23 +02:00
parent a71426c300
commit 4d944a5113
9 changed files with 1075 additions and 129 deletions

View File

@@ -47,6 +47,10 @@ parameters:
mto.commerce.store_api_base_url: '%env(SHOPWARE_STORE_API_BASE_URL)%'
mto.commerce.sales_channel_access_key: '%env(SHOPWARE_SALES_CHANNEL_ACCESS_KEY)%'
mto.commerce.search_repair.enabled: true
mto.commerce.search_repair.max_queries: 3
mto.commerce.search_repair.min_primary_results_without_repair: 2
# ------------------------------------------------------------
# Services
@@ -116,6 +120,13 @@ services:
App\Commerce\CommerceQueryParser: ~
App\Commerce\SearchRepairService:
arguments:
$logger: '@monolog.logger.agent'
$enabled: '%mto.commerce.search_repair.enabled%'
$maxRepairQueries: '%mto.commerce.search_repair.max_queries%'
$minPrimaryResultsWithoutRepair: '%mto.commerce.search_repair.min_primary_results_without_repair%'
App\Shopware\ShopwareCriteriaBuilder: ~
App\Shopware\StoreApiClient: