Skip to content

Commit e13add3

Browse files
committed
- add abstract parent service
1 parent 6bc2052 commit e13add3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Bundle/services.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,20 @@ services:
2828
arguments:
2929
- "@form.factory"
3030

31+
matthias_symfony_console_form.abstract_transformer:
32+
abstract: true
33+
arguments: [ "@translator" ]
34+
3135
matthias_symfony_console_form.text_transformer:
3236
class: Matthias\SymfonyConsoleForm\Bridge\Transformer\TextTransformer
33-
arguments: [ "@translator" ]
37+
parent: matthias_symfony_console_form.abstract_transformer
3438
public: false
3539
tags:
3640
- { name: form_to_question_transformer, form_type: Symfony\Component\Form\Extension\Core\Type\TextType }
3741

3842
matthias_symfony_console_form.date_time_transformer:
3943
class: Matthias\SymfonyConsoleForm\Bridge\Transformer\DateTimeTransformer
40-
arguments: [ "@translator" ]
44+
parent: matthias_symfony_console_form.abstract_transformer
4145
public: false
4246
tags:
4347
- { name: form_to_question_transformer, form_type: Symfony\Component\Form\Extension\Core\Type\TimeType }
@@ -46,14 +50,14 @@ services:
4650

4751
matthias_symfony_console_form.password_transformer:
4852
class: Matthias\SymfonyConsoleForm\Bridge\Transformer\PasswordTransformer
49-
arguments: [ "@translator" ]
53+
parent: matthias_symfony_console_form.abstract_transformer
5054
public: false
5155
tags:
5256
- { name: form_to_question_transformer, form_type: Symfony\Component\Form\Extension\Core\Type\PasswordType }
5357

5458
matthias_symfony_console_form.choice_transformer:
5559
class: Matthias\SymfonyConsoleForm\Bridge\Transformer\ChoiceTransformer
56-
arguments: [ "@translator" ]
60+
parent: matthias_symfony_console_form.abstract_transformer
5761
public: false
5862
tags:
5963
- { name: form_to_question_transformer, form_type: Symfony\Component\Form\Extension\Core\Type\ChoiceType }

0 commit comments

Comments
 (0)