feat: send accepted teamer invoices to configurable email inbox

This commit is contained in:
Björn Fromme committed 2026-03-15 12:42:28 +01:00
1 parent 3cb5b065f4
commit 3b99757a08
13 files changed
+648 -4

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace App\Email;
use Symfony\Bridge\Twig\Mime\TemplatedEmail;
interface EmailAttachmentInterface
{
public function attachTo(TemplatedEmail $email): void;
}
+2 -3
View File
@@ -2,7 +2,6 @@
namespace App\Email;
use App\Model\EmailAttachmentDto;
use Psr\Log\LoggerInterface;
use Symfony\Bridge\Twig\Mime\TemplatedEmail;
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
@@ -46,8 +45,8 @@ class Mailer
;
foreach ($config['attachments'] as $attachment) {
/* @var EmailAttachmentDto $attachment */
$email->attach($attachment->getContent(), $attachment->getName(), $attachment->getMimeType());
/* @var EmailAttachmentInterface $attachment */
$attachment->attachTo($email);
}
$this->bodyRenderer->render($email);