harden code

This commit is contained in:
team 1
2026-02-15 16:01:08 +01:00
parent 5b100039e0
commit c099f72703
13 changed files with 397 additions and 59 deletions

View File

@@ -1,6 +1,5 @@
<?php
namespace App\Service;
use App\Entity\IngestJob;
@@ -19,10 +18,11 @@ final class IngestJobService
?User $user = null,
?Uuid $documentId = null,
?Uuid $documentVersionId = null,
?string $logPath = null
?string $logPath = null,
string $status = IngestJob::STATUS_RUNNING
): IngestJob
{
$job = new IngestJob($type);
$job = new IngestJob($type, $status);
$job->setStartedBy($user);
$job->setDocumentId($documentId);
$job->setDocumentVersionId($documentVersionId);