From 18ae32f15ad7b8308ee7433f5c702d70636833a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 8 Oct 2023 00:33:48 +0200 Subject: [PATCH] Renamed some env to match their purpose better --- .env | 15 ++++++--------- config/services.yaml | 4 ++-- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.env b/.env index 7c09436b..0b834c2e 100644 --- a/.env +++ b/.env @@ -145,17 +145,14 @@ PROVIDER_OCTOPART_ONLY_AUTHORIZED_SELLERS=1 # Mouser Provider API V2: # You can get your API key from https://www.mouser.it/api-hub/ PROVIDER_MOUSER_KEY= -# If not provided, the default is false. Used when searching for keywords in the language specified when you signed up for Search API. -# Can use string representation: true. -PROVIDER_MOUSER_LANGUAGE='true' -#searchOptions string -#Optional. If not provided, the default is None. -#Refers to options supported by the search engine. -#Only one value at a time is supported. -#Available options: None | Rohs | InStock | RohsAndInStock - can use string representations or integer IDs: 1[None] | 2[Rohs] | 4[InStock] | 8[RohsAndInStock]. -PROVIDER_MOUSER_OPTION='1' +# Filter search results by RoHS compliance and stock availability: +# Available options: None | Rohs | InStock | RohsAndInStock +PROVIDER_MOUSER_SEARCH_OPTION='None' # The number of results to get from Mouser while searching (please note that this value is max 50) PROVIDER_MOUSER_SEARCH_LIMIT=50 +# It is recommended to leave this set to 'true'. The option is not really good doumented by Mouser: +# Used when searching for keywords in the language specified when you signed up for Search API. +PROVIDER_MOUSER_SEARCH_WITH_SIGNUP_LANGUAGE='true' ################################################################################### # SAML Single sign on-settings diff --git a/config/services.yaml b/config/services.yaml index 1754b266..b99bb72a 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -280,8 +280,8 @@ services: App\Services\InfoProviderSystem\Providers\MouserProvider: arguments: $api_key: '%env(string:PROVIDER_MOUSER_KEY)%' - $language: '%env(string:PROVIDER_MOUSER_LANGUAGE)%' - $options: '%env(string:PROVIDER_MOUSER_OPTION)%' + $language: '%env(string:PROVIDER_MOUSER_SEARCH_WITH_SIGNUP_LANGUAGE)%' + $options: '%env(string:PROVIDER_MOUSER_SEARCH_OPTION)%' $search_limit: '%env(int:PROVIDER_MOUSER_SEARCH_LIMIT)%' ####################################################################################################################