feat(directory) : add ReportDocument storage (entity, upload processor, download, cleanup)

This commit is contained in:
Matthieu
2026-06-22 11:51:53 +02:00
parent 5af529d1b2
commit b9538454a9
6 changed files with 444 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace App\Module\Directory\Infrastructure\Doctrine;
use App\Module\Directory\Domain\Entity\ReportDocument;
use App\Module\Directory\Domain\Repository\ReportDocumentRepositoryInterface;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<ReportDocument>
*/
final class DoctrineReportDocumentRepository extends ServiceEntityRepository implements ReportDocumentRepositoryInterface
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, ReportDocument::class);
}
public function findById(int $id): ?ReportDocument
{
return $this->find($id);
}
}