add a 'PickAPersonType'

ref Chill-project/Chill-Event#5
fix #9
This commit is contained in:
2016-03-24 01:36:09 +01:00
parent 40a1476156
commit bc8832b732
4 changed files with 360 additions and 1 deletions

View File

@@ -69,4 +69,18 @@ services:
- "@chill.main.form.data_transformer.center_transformer"
tags:
- { name: form.type, alias: chill_personbundle_person_creation }
chill.person.form.type.pick_person:
class: Chill\PersonBundle\Form\Type\PickPersonType
arguments:
- "@chill.person.repository.person"
- "@security.token_storage"
- "@chill.main.security.authorization.helper"
tags:
- { name: form.type }
chill.person.repository.person:
class: Chill\PersonBundle\Entity\PersonRepository
factory: ['@doctrine.orm.entity_manager', getRepository]
arguments:
- 'Chill\PersonBundle\Entity\Person'