add model + form to handle alt names

This commit is contained in:
2020-01-30 15:51:39 +01:00
parent 7b7ce4a604
commit 426458811c
14 changed files with 482 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
services:
Chill\PersonBundle\Config\ConfigPersonAltNamesHelper:
arguments:
$config: '%chill_person.person_fields.alt_names%'

View File

@@ -3,6 +3,7 @@ services:
class: Chill\PersonBundle\Form\PersonType
arguments:
- "%chill_person.person_fields%"
- '@Chill\PersonBundle\Config\ConfigPersonAltNamesHelper'
tags:
- { name: form.type }
@@ -29,3 +30,10 @@ services:
- '@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 }