feat: email notifications about uploaded invoices to management

This commit is contained in:
Björn Fromme committed 2024-04-04 15:08:52 +02:00
1 parent ffc33cebc5
commit 8d0babba14
5 files changed
+100 -3

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Event;
use App\Entity\Upload;
use Symfony\Contracts\EventDispatcher\Event;
class DocumentUploadedEvent extends Event
{
public const NAME = 'document.uploaded';
public function __construct(private readonly Upload $document)
{
}
public function getDocument(): Upload
{
return $this->document;
}
}