@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | $resolver->setDefaults([ |
| 28 | 28 | 'choices' => array_combine($countries, $countries), |
| 29 | - 'choice_label' => function ($value, $key, $index) { |
|
| 29 | + 'choice_label' => function($value, $key, $index) { |
|
| 30 | 30 | return 'form.choice_'.strtolower($value); |
| 31 | 31 | }, |
| 32 | 32 | 'choice_translation_domain' => 'Core23FormBundle', |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | 'male' => static::TYPE_MALE, |
| 32 | 32 | 'female' => static::TYPE_FEMALE, |
| 33 | 33 | ], |
| 34 | - 'choice_label' => function ($value, $key, $index) { |
|
| 34 | + 'choice_label' => function($value, $key, $index) { |
|
| 35 | 35 | return 'gender.'.$key; |
| 36 | 36 | }, |
| 37 | 37 | 'choice_translation_domain' => 'Core23FormBundle', |