'customerId' =>
$parameters[self::CUSTOMER_ID
],
'billingAddressId' => null,
'shippingAddressId' => null,
'shippingMethodId' => null,
'paymentMethodId' => null,
'languageId' => null,
'currencyId' => null,
],
$context->
getSalesChannel()->
getId() );
$event =
new SalesChannelContextSwitchEvent($context,
$data);
$this->eventDispatcher->
dispatch($event);
} private function persistPermissions(Request
$request, SalesChannelContext
$salesChannelContext): void
{ $contextToken =
$salesChannelContext->
getToken();
$salesChannelId =
$salesChannelContext->
getSalesChannelId();
$payload =
$this->contextPersister->
load($contextToken,
$salesChannelId);
$requestPermissions =
$request->
get(SalesChannelContextService::PERMISSIONS
);