feat(monorepo): migrate to typescript monorepo

This commit is contained in:
2025-11-07 17:09:29 +02:00
committed by BernardNganduDev
parent 3e09956f05
commit 075a388ccb
745 changed files with 2341 additions and 5082 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace Tests\Behat\Hook;
use Behat\Behat\Context\Context;
use Behat\Hook\BeforeScenario;
use Doctrine\Common\DataFixtures\Purger\ORMPurger;
use Doctrine\ORM\EntityManagerInterface;
final readonly class DatabasePurger implements Context
{
public function __construct(
private EntityManagerInterface $entityManager
) {
}
#[BeforeScenario]
public function purge(): void
{
$this->entityManager->getConnection()
->getConfiguration()
->setMiddlewares([]);
$purger = new ORMPurger($this->entityManager);
$purger->purge();
$this->entityManager->clear();
}
}