factorize PickRoleType, PickStatusType and rename TranslatableEventType

This commit is contained in:
2016-04-19 15:30:44 +02:00
parent 78c53fe7b0
commit cf4a0d9e75
8 changed files with 326 additions and 56 deletions

View File

@@ -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 }

View File

@@ -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'

View File

@@ -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: