'domains' =>
[ [ 'id' => Uuid::
randomHex(),
'url'
=> ($case->https ? 'https://' : 'http://'
) .
$case->host .
$request->
getBaseUrl() .
$case->salesChannelPrefix,
'languageId' => Defaults::LANGUAGE_SYSTEM,
'currencyId' => Defaults::CURRENCY,
'snippetSetId' =>
$this->
getSnippetSetIdForLocale('en-GB'
),
],
],
];
return $this->
createSalesChannels([$salesChannel]);
} private function createSalesChannels(array
$salesChannels): SalesChannelContext
{ $salesChannels =
array_map(function D
$salesChannelData) { $defaults =
[ 'typeId' => Defaults::SALES_CHANNEL_TYPE_STOREFRONT,
'accessKey' => AccessKeyHelper::
generateAccessKey('sales-channel'
),
'languageId' => Defaults::LANGUAGE_SYSTEM,
'snippetSetId' =>
$this->
getSnippetSetIdForLocale('en-GB'
),
'currencyId' => Defaults::CURRENCY,