Automatically execute body renderer when posting an email in Chill

+ adaptation of services which already uses body renderer
This commit is contained in:
2024-10-10 14:06:00 +02:00
parent 3d53e7da65
commit 1313b6f138
3 changed files with 15 additions and 6 deletions

View File

@@ -25,7 +25,6 @@ final readonly class PostSendExternalMessageHandler implements MessageHandlerInt
public function __construct(
private EntityWorkflowRepository $entityWorkflowRepository,
private MailerInterface $mailer,
private BodyRendererInterface $bodyRenderer,
private EntityWorkflowManager $workflowManager,
) {}
@@ -56,7 +55,6 @@ final readonly class PostSendExternalMessageHandler implements MessageHandlerInt
'lang' => $message->lang,
]);
$this->bodyRenderer->render($email);
$this->mailer->send($email);
}
}