add shopware store-api
This commit is contained in:
@@ -41,6 +41,12 @@ parameters:
|
||||
mto.vector.timeout: 600
|
||||
mto.vector.service_url: 'http://127.0.0.1:8090'
|
||||
|
||||
mto.commerce.enabled: true
|
||||
mto.commerce.max_shop_results: '%env(SHOPWARE_STORE_API_MAX_RESULT)%'
|
||||
mto.commerce.shop_timeout: 5
|
||||
mto.commerce.store_api_base_url: '%env(SHOPWARE_STORE_API_BASE_URL)%'
|
||||
mto.commerce.sales_channel_access_key: '%env(SHOPWARE_SALES_CHANNEL_ACCESS_KEY)%'
|
||||
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Services
|
||||
@@ -99,10 +105,31 @@ services:
|
||||
|
||||
App\Knowledge\Retrieval\NdjsonHybridRetriever: ~
|
||||
|
||||
# CachedRetriever entfernt: war Interface-inkompatibel und erzeugt Drift/Chaos
|
||||
App\Knowledge\Retrieval\RetrieverInterface:
|
||||
alias: App\Knowledge\Retrieval\NdjsonHybridRetriever
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Commerce / Shopware Store API
|
||||
# ------------------------------------------------------------
|
||||
|
||||
App\Intent\CommerceIntentLite: ~
|
||||
|
||||
App\Commerce\CommerceQueryParser: ~
|
||||
|
||||
App\Shopware\ShopwareCriteriaBuilder: ~
|
||||
|
||||
App\Shopware\StoreApiClient:
|
||||
arguments:
|
||||
$baseUrl: '%mto.commerce.store_api_base_url%'
|
||||
$salesChannelAccessKey: '%mto.commerce.sales_channel_access_key%'
|
||||
$timeoutSeconds: '%mto.commerce.shop_timeout%'
|
||||
|
||||
App\Commerce\ShopSearchService:
|
||||
arguments:
|
||||
$enabled: '%mto.commerce.enabled%'
|
||||
$maxResults: '%mto.commerce.max_shop_results%'
|
||||
$baseUrl: '%mto.commerce.store_api_base_url%'
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Index Configuration Provider
|
||||
# ------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user