feat: admin editable email templates

addresses #869eg7ptr
This commit is contained in:
Björn Fromme committed 2026-08-17 10:39:19 +02:00
1 parent 804dab335f
commit 3e08965e48
49 files changed
+1760 -276

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Model;
/**
* The finished, already escaped parts of an editable mail.
*
* Every string in here is HTML-safe by construction (see App\Email\EmailTextRenderer),
* which is what lets email/generic.html.twig print them with |raw. Do not build one of
* these anywhere but in the renderer.
*/
readonly class RenderedEmailTextDto
{
public function __construct(
public string $subject,
public string $headline,
public string $bodyHtml,
) {
}
}