feat: booking details pdf

This commit is contained in:
Björn Fromme
2026-08-18 14:26:24 +02:00
parent d3666c4618
commit 2d7a02341d
19 changed files with 1054 additions and 100 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Email;
use Symfony\Bridge\Twig\Mime\TemplatedEmail;
/**
* An already rendered PDF, ready to be hung on an email.
*/
readonly class PdfAttachment implements EmailAttachmentInterface
{
public function __construct(
private string $content,
private string $filename,
) {
}
public function attachTo(TemplatedEmail $email): void
{
$email->attach($this->content, $this->filename, 'application/pdf');
}
}