Skip to content

Commit

Permalink
afterSendEmailのデータをエンティティに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
seto1 committed Nov 7, 2024
1 parent 4ad5093 commit 5cf8890
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 @@ -289,7 +289,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 @@ -308,9 +308,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 5cf8890

Please sign in to comment.