Inheritance: implements Dumplie\SharedKernel\Application\Command\Command, use trait Dumplie\SharedKernel\Application\Command\CommandSerialize
示例#1
0
 /**
  * @param RemoveFromCart $command
  *
  * @throws \Exception
  */
 public function handle(RemoveFromCart $command)
 {
     $cart = $this->carts->getById(new CartId($command->cartId()));
     $cart->remove(new SKU($command->sku()));
 }