public function createdInvoice(InvoiceWasCreated $event) { $this->activityRepo->create($event->invoice, ACTIVITY_TYPE_CREATE_INVOICE, $event->invoice->getAdjustment()); }