Fixed: re-introduce creator in async doc generation

This commit is contained in:
2023-03-15 13:38:19 +01:00
parent d1bdf41c4c
commit 44ecad2bca
10 changed files with 47 additions and 15 deletions

View File

@@ -18,6 +18,8 @@ class RequestGenerationMessage
private array $contextGenerationData;
private \DateTimeImmutable $createdAt;
public function __construct(
User $creator,
DocGeneratorTemplate $template,
@@ -30,6 +32,7 @@ class RequestGenerationMessage
$this->entityId = $entityId;
$this->destinationStoredObjectId = $destinationStoredObject->getId();
$this->contextGenerationData = $contextGenerationData;
$this->createdAt = new \DateTimeImmutable('now');
}
public function getCreatorId(): int
@@ -56,4 +59,9 @@ class RequestGenerationMessage
{
return $this->contextGenerationData;
}
public function getCreatedAt(): \DateTimeImmutable
{
return $this->createdAt;
}
}