feat(directory) : add ReportDocument storage (entity, upload processor, download, cleanup)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user