mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
Automatically execute body renderer when posting an email in Chill
+ adaptation of services which already uses body renderer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user