29 lines
722 B
PHP
29 lines
722 B
PHP
<?php
|
|
|
|
namespace App\Component\File\Infrastructure;
|
|
|
|
use App\Component\File\Domain\File;
|
|
use App\Component\File\Domain\FileDataMapper;
|
|
use App\Component\File\Domain\FileRepository;
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
class FileDatabaseAdapter extends ServiceEntityRepository implements FileDataMapper, FileRepository
|
|
{
|
|
|
|
public function __construct(ManagerRegistry $registry)
|
|
{
|
|
parent::__construct($registry, File::class);
|
|
}
|
|
|
|
public function findById(int $id): File
|
|
{
|
|
// TODO: Implement findById() method.
|
|
}
|
|
|
|
public function findAll(): array
|
|
{
|
|
// TODO: Implement findAll() method.
|
|
}
|
|
|
|
} |