fix: include comment in notification email on document rejection

closes #869bppd0e
This commit is contained in:
Björn Fromme
2026-03-15 12:42:27 +01:00
parent b25950ee65
commit afe38289ec
3 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -3,7 +3,6 @@
namespace App\Event;
use App\Entity\Upload;
use App\Model\DocumentCheckDto;
use Symfony\Contracts\EventDispatcher\Event;
class DocumentRejectedEvent extends Event
@@ -13,10 +12,10 @@ class DocumentRejectedEvent extends Event
private Upload $document;
private ?string $comment;
public function __construct(DocumentCheckDto $documentCheckDto)
public function __construct(Upload $document)
{
$this->document = $documentCheckDto->getUpload();
$this->comment = $documentCheckDto->getComment();
$this->document = $document;
$this->comment = $document->getComment();
}
public function getDocument(): Upload