$this->
checkVersion($address);
} private function recalculateCart(Cart
$cart, SalesChannelContext
$context): Cart
{ $behavior =
new CartBehavior($context->
getPermissions(), true, true
);
// all prices are now prepared for calculation - starts the cart calculation
$cart =
$this->processor->
process($cart,
$context,
$behavior);
// validate cart against the context rules
$validated =
$this->cartRuleLoader->
loadByCart($context,
$cart,
$behavior);
$cart =
$validated->
getCart();
return $cart;
}}