Dumplie\CustomerService\Application\Command\PayPaymentHandler::handle PHP 메소드

handle() 공개 메소드

public handle ( PayPayment $command )
$command PayPayment
    public function handle(PayPayment $command)
    {
        $payment = $this->payments->getById(new PaymentId($command->paymentId()));
        $payment->pay();
    }
PayPaymentHandler