$customer,
$itemRounding,
$totalRounding );
if (\
array_key_exists(SalesChannelContextService::PERMISSIONS,
$options)) { $salesChannelContext->
setPermissions($options[SalesChannelContextService::PERMISSIONS
]);
$event =
new SalesChannelContextPermissionsChangedEvent($salesChannelContext,
$options[SalesChannelContextService::PERMISSIONS
]);
$this->eventDispatcher->
dispatch($event);
$salesChannelContext->
lockPermissions();
} $salesChannelContext->
setTaxState($this->taxDetector->
getTaxState($salesChannelContext));
return $salesChannelContext;
} private function getTaxRules(BaseContext
$context, ?CustomerEntity
$customer, ShippingLocation
$shippingLocation): TaxCollection
{ $taxes =
$context->
getTaxRules()->
getElements();