/** * @param InvoiceEvent $event */ public function onInvoiceAccepted(InvoiceEvent $event) { $this->mailer->sendInvoice($event->getInvoice()); }