Set repositories for EventBundle on the new way + dependent issues

This commit is contained in:
2023-07-22 23:05:30 +02:00
parent 48cd8aaa9f
commit 4028cc8a8b
13 changed files with 114 additions and 161 deletions

View File

@@ -1,49 +1,33 @@
services:
_defaults:
autowire: true
autoconfigure: true
chill.event.form.type.pick_event_type:
class: Chill\EventBundle\Form\Type\PickEventTypeType
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: form.type }
chill.event.form.participation_type:
class: Chill\EventBundle\Form\ParticipationType
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: form.type }
chill.event.form.pick_role_type:
class: Chill\EventBundle\Form\Type\PickRoleType
arguments:
- "@chill.main.helper.translatable_string"
- "@translator"
- "@chill_event.repository.role"
tags:
- { name: form.type }
chill.event.form.pick_status_type:
class: Chill\EventBundle\Form\Type\PickStatusType
arguments:
- "@chill.main.helper.translatable_string"
- "@translator"
- "@chill_event.repository.status"
tags:
- { name: form.type }
chill.event.form.role_type:
class: Chill\EventBundle\Form\RoleType
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: form.type }
Chill\EventBundle\Form\Type\PickEventType:
arguments:
$eventRepository: "@chill_event.repository.event"
$tokenStorage: "@security.token_storage"
$authorizationHelper: "@chill.main.security.authorization.helper"
$urlGenerator: '@Symfony\Component\Routing\Generator\UrlGeneratorInterface'
$translator: '@Symfony\Contracts\Translation\TranslatorInterface'
tags:
- { name: form.type }

View File

@@ -1,25 +1,5 @@
services:
chill_event.repository.event:
class: Chill\EventBundle\Repository\EventRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\EventBundle\Entity\Event'
chill_event.repository.participation:
class: Chill\EventBundle\Repository\ParticipationRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\EventBundle\Entity\Participation'
chill_event.repository.role:
class: Doctrine\ORM\EntityRepository
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]
arguments:
- 'Chill\EventBundle\Entity\Status'
Chill\EventBundle\Repository\:
resource: './../../Repository'
autowire: true
autoconfigure: true

View File

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