diff --git a/src/Bundle/ChillEventBundle/Search/EventSearch.php b/src/Bundle/ChillEventBundle/Search/EventSearch.php index 3e22eb0c5..d6cfc2e6b 100644 --- a/src/Bundle/ChillEventBundle/Search/EventSearch.php +++ b/src/Bundle/ChillEventBundle/Search/EventSearch.php @@ -43,10 +43,10 @@ class EventSearch extends AbstractSearch public function __construct( private readonly Security $security, - private readonly EventRepository $er, + private readonly EventRepository $eventRepository, private readonly AuthorizationHelper $authorizationHelper, private readonly \Twig\Environment $templating, - private readonly PaginatorFactory $paginationFactory + private readonly PaginatorFactory $paginatorFactory ) { } @@ -68,7 +68,7 @@ class EventSearch extends AbstractSearch $format = 'html' ) { $total = $this->count($terms); - $paginator = $this->paginationFactory->create($total); + $paginator = $this->paginatorFactory->create($total); if ('html' === $format) { return $this->templating->render( @@ -184,7 +184,7 @@ class EventSearch extends AbstractSearch protected function count(array $terms) { - $qb = $this->er->createQueryBuilder('e'); + $qb = $this->eventRepository->createQueryBuilder('e'); $qb->select('COUNT(e)'); $this->composeQuery($qb, $terms); @@ -198,7 +198,7 @@ class EventSearch extends AbstractSearch protected function search(array $terms, $start, $limit, $options) { - $qb = $this->er->createQueryBuilder('e'); + $qb = $this->eventRepository->createQueryBuilder('e'); $qb->select('e'); $this->composeQuery($qb, $terms) ->setMaxResults($limit)