mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-19 19:52:49 +00:00
Render for generic doc
This commit is contained in:
@@ -15,7 +15,7 @@ use Chill\DocStoreBundle\GenericDoc\FetchQuery;
|
||||
use Chill\DocStoreBundle\GenericDoc\FetchQueryInterface;
|
||||
use Chill\DocStoreBundle\GenericDoc\GenericDocDTO;
|
||||
use Chill\DocStoreBundle\GenericDoc\Manager;
|
||||
use Chill\DocStoreBundle\GenericDoc\ProviderForAccompanyingPeriodInterface;
|
||||
use Chill\DocStoreBundle\GenericDoc\GenericDocForAccompanyingPeriodProviderInterface;
|
||||
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
||||
use Doctrine\DBAL\Connection;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
@@ -52,7 +52,7 @@ class ManagerTest extends KernelTestCase
|
||||
}
|
||||
|
||||
$manager = new Manager(
|
||||
[new SimpleProvider()],
|
||||
[new SimpleGenericDocProvider()],
|
||||
$this->connection,
|
||||
);
|
||||
|
||||
@@ -72,7 +72,7 @@ class ManagerTest extends KernelTestCase
|
||||
}
|
||||
|
||||
$manager = new Manager(
|
||||
[new SimpleProvider()],
|
||||
[new SimpleGenericDocProvider()],
|
||||
$this->connection,
|
||||
);
|
||||
|
||||
@@ -82,7 +82,7 @@ class ManagerTest extends KernelTestCase
|
||||
}
|
||||
}
|
||||
|
||||
final readonly class SimpleProvider implements ProviderForAccompanyingPeriodInterface
|
||||
final readonly class SimpleGenericDocProvider implements GenericDocForAccompanyingPeriodProviderInterface
|
||||
{
|
||||
public function buildFetchQueryForAccompanyingPeriod(AccompanyingPeriod $accompanyingPeriod, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, ?string $origin = null): FetchQueryInterface
|
||||
{
|
||||
|
Reference in New Issue
Block a user