Slide 16
Slide 16 text
mailer = new Mailer('api-key', 'secret');
// some code
}
public function process(Payment $payment)
{
// ...
$this->mailer->send(
$payment->receiver(),
new PaymentNotificationMessage($payment)
);
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$this->mailer = new Mailer('api-key', 'secret');
mailer->send(
16
$payment->receiver(),
17
new PaymentNotificationMessage($payment)
18
);
19
20
}
21
}
22
$this->mailer->send(
$payment->receiver(),
new PaymentNotificationMessage($payment)
);
}
}
mailer = new Mailer('api-key', 'secret');
8
// some code
9
}
10
11
public function process(Payment $payment)
12
{
13
// ...
14
15
16
17
18
19
20
21
22