mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
factorize PickRoleType, PickStatusType and rename TranslatableEventType
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
chill.event.form.type.translatable_event_type:
|
||||
class: Chill\EventBundle\Form\Type\TranslatableEventType
|
||||
chill.event.form.type.pick_event_type:
|
||||
class: Chill\EventBundle\Form\Type\PickEventType
|
||||
arguments:
|
||||
- "@chill.main.helper.translatable_string"
|
||||
tags:
|
||||
@@ -21,3 +21,21 @@ services:
|
||||
- "@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 }
|
||||
|
@@ -1,6 +1,18 @@
|
||||
services:
|
||||
chill_group.repository.event:
|
||||
chill_event.repository.event:
|
||||
class: Doctrine\ORM\EntityRepository
|
||||
factory: ['@doctrine.orm.entity_manager', getRepository]
|
||||
arguments:
|
||||
- 'Chill\EventBundle\Entity\Event'
|
||||
- 'Chill\EventBundle\Entity\Event'
|
||||
|
||||
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'
|
@@ -3,7 +3,7 @@ services:
|
||||
class: Chill\EventBundle\Search\EventSearch
|
||||
arguments:
|
||||
- "@security.token_storage"
|
||||
- "@chill_group.repository.event"
|
||||
- "@chill_event.repository.event"
|
||||
- "@chill.main.security.authorization.helper"
|
||||
- "@templating"
|
||||
tags:
|
||||
|
Reference in New Issue
Block a user