mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
Rector changes: repositories become final readonly classes
This commit is contained in:
@@ -20,13 +20,13 @@ use Doctrine\ORM\EntityRepository;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
final class OriginAggregator implements AggregatorInterface
|
||||
final readonly class OriginAggregator implements AggregatorInterface
|
||||
{
|
||||
private readonly EntityRepository $repository;
|
||||
private EntityRepository $repository;
|
||||
|
||||
public function __construct(
|
||||
EntityManagerInterface $em,
|
||||
private readonly TranslatableStringHelper $translatableStringHelper
|
||||
private TranslatableStringHelper $translatableStringHelper
|
||||
) {
|
||||
$this->repository = $em->getRepository(Origin::class);
|
||||
}
|
||||
|
Reference in New Issue
Block a user