Skip to content

Commit

Permalink
afterSendEmailのデータをエンティティに変更 (#3992)
Browse files Browse the repository at this point in the history
  • Loading branch information
seto1 authored Nov 8, 2024
1 parent f0e98aa commit 615adc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/bc-mail/src/Controller/MailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public function submit(
return $this->redirect($this->request->getAttribute('currentContent')->url . '/');
}

// EVENT Mail.beforeSendEmail
// EVENT BcMail.Mail.beforeSendEmail
$event = $this->dispatchLayerEvent('beforeSendEmail', [
'data' => $entity
]);
Expand All @@ -309,9 +309,9 @@ public function submit(
return $this->redirect($this->request->getAttribute('currentContent')->url . '/');
}

// EVENT Mail.afterSendEmail
// EVENT BcMail.Mail.afterSendEmail
$this->dispatchLayerEvent('afterSendEmail', [
'data' => $this->request->getData()
'data' => $entity
]);

$this->getRequest()->getSession()->write('BcMail.MailContent', $mailContent);
Expand Down

0 comments on commit 615adc8

Please sign in to comment.