public function getDecorated(): AbstractCartDeleteRoute
{ throw new DecorationPatternException(self::
class);
} #[Route(path: '/store-api/checkout/cart', name: 'store-api.checkout.cart.delete', methods: ['DELETE'])]
public function delete(SalesChannelContext
$context): NoContentResponse
{ $this->cartPersister->
delete($context->
getToken(),
$context);
$cartDeleteEvent =
new CartDeletedEvent($context);
$this->eventDispatcher->
dispatch($cartDeleteEvent);
return new NoContentResponse();
}}