$cart =
$this->itemUpdateRoute->
change($request,
$cart,
$context)->
getCart();
return $this->cart
[$cart->
getToken()] =
$cart;
} /**
* @throws CartException
*/
public function remove(Cart
$cart, string
$identifier, SalesChannelContext
$context): Cart
{ return $this->
removeItems($cart,
[$identifier],
$context);
} /**
* @param string[] $ids
*
* @throws CartException
*/
public function removeItems(Cart
$cart, array
$ids, SalesChannelContext
$context): Cart
{ $request =
new Request();
$request->request->
set('ids',
$ids);