public function createCustomSalesChannelBrowser(array
$salesChannelOverride =
[]): KernelBrowser
{ $kernel =
$this->
getKernel();
$salesChannelApiBrowser = KernelLifecycleManager::
createBrowser($kernel);
$salesChannelApiBrowser->
setServerParameters([ 'HTTP_ACCEPT' => 'application/json',
'HTTP_' . PlatformRequest::HEADER_CONTEXT_TOKEN => Random::
getAlphanumericString(32
),
]);
$this->
authorizeSalesChannelBrowser($salesChannelApiBrowser,
$salesChannelOverride);
return $salesChannelApiBrowser;
} /**
* @param array<mixed> $salesChannelOverride
* @param array<mixed> $options
*/
public function createSalesChannelContext(array
$salesChannelOverride =
[], array
$options =
[]): SalesChannelContext
{ $salesChannel =
$this->
createSalesChannel($salesChannelOverride);