feat: email notifications about uploaded invoices to management

This commit is contained in:
Björn Fromme
2024-04-04 15:08:52 +02:00
parent ffc33cebc5
commit 8d0babba14
5 changed files with 100 additions and 3 deletions
+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;
}
}