fix event bundle stuffs

- adapt event templates
- event bundle: fix deprecated deps injections
- fix error with n=0 not iterated into querybuilder with centers loop
This commit is contained in:
2023-04-24 14:44:26 +02:00
parent 01f2697b8d
commit 8fd9010ea5
8 changed files with 47 additions and 43 deletions

View File

@@ -17,7 +17,7 @@ services:
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\EventBundle\Entity\Role'
chill_event.repository.status:
class: Doctrine\ORM\EntityRepository
factory: ['@doctrine.orm.entity_manager', getRepository]

View File

@@ -1,12 +1,11 @@
services:
chill_event.search_events:
class: Chill\EventBundle\Search\EventSearch
Chill\EventBundle\Search\EventSearch:
arguments:
- "@security.token_storage"
- "@chill_event.repository.event"
- "@chill.main.security.authorization.helper"
- "@templating"
- "@chill_main.paginator_factory"
$security: '@Symfony\Component\Security\Core\Security'
$eventRepository: "@chill_event.repository.event"
$authorizationHelper: "@chill.main.security.authorization.helper"
$templating: "@templating"
$paginatorFactory: "@chill_main.paginator_factory"
tags:
- { name: chill.search, alias: 'event_regular' }