diff --git a/src/Bundle/ChillPersonBundle/config/services.yaml b/src/Bundle/ChillPersonBundle/config/services.yaml index f989b5dda..8e38efb3a 100644 --- a/src/Bundle/ChillPersonBundle/config/services.yaml +++ b/src/Bundle/ChillPersonBundle/config/services.yaml @@ -98,3 +98,8 @@ services: autowire: true autoconfigure: true resource: '../Workflow/' + + Chill\PersonBundle\Form\Type\: + resource: '../Form/Type' + tags: + - form.type diff --git a/src/Bundle/ChillPersonBundle/config/services/form.yaml b/src/Bundle/ChillPersonBundle/config/services/form.yaml index 2390005cf..e52a6ea55 100644 --- a/src/Bundle/ChillPersonBundle/config/services/form.yaml +++ b/src/Bundle/ChillPersonBundle/config/services/form.yaml @@ -27,3 +27,34 @@ services: $config: "%chill_person.accompanying_period_fields%" tags: - { name: form.type } + + 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" + - '@Symfony\Component\Routing\Generator\UrlGeneratorInterface' + - '@Symfony\Component\Translation\TranslatorInterface' + tags: + - { name: form.type } + + Chill\PersonBundle\Form\Type\PersonAltNameType: + arguments: + $configHelper: '@Chill\PersonBundle\Config\ConfigPersonAltNamesHelper' + $translatableStringHelper: '@chill.main.helper.translatable_string' + tags: + - { name: form.type } + + Chill\PersonBundle\Form\Type\PersonPhoneType: + arguments: + $phonenumberHelper: '@Chill\MainBundle\Phonenumber\PhonenumberHelper' + $em: '@Doctrine\ORM\EntityManagerInterface' + tags: + - { name: form.type } + + Chill\PersonBundle\Form\Type\PhoneNumberType: + autowire: true + autoconfigure: true + tags: + - { name: form.type }