private readonly InstanceService
$instanceService,
private readonly LocaleProvider
$localeProvider,
) { } /**
* @return array<string, string>
*/
public function getAuthenticationHeader(Context
$context): array
{ return array_filter([ self::SHOPWARE_PLATFORM_TOKEN_HEADER =>
$this->
getUserStoreToken($context),
self::SHOPWARE_SHOP_SECRET_HEADER =>
$this->systemConfigService->
getString(self::CONFIG_KEY_STORE_SHOP_SECRET
),
]);
} /**
* @return array<string, string>
*/
public function getDefaultQueryParameters(Context
$context): array
{ return [ 'shopwareVersion' =>
$this->instanceService->
getShopwareVersion(),