From d8afbc4a4083bd3d40363f635399faa7ba162322 Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 22 Jun 2021 11:56:25 +0200 Subject: [PATCH] fix bug on PostalCodeChoiceLoader (not understood) --- src/Bundle/ChillMainBundle/config/services/form.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillMainBundle/config/services/form.yaml b/src/Bundle/ChillMainBundle/config/services/form.yaml index 3bfb409e9..bd5c1ece5 100644 --- a/src/Bundle/ChillMainBundle/config/services/form.yaml +++ b/src/Bundle/ChillMainBundle/config/services/form.yaml @@ -58,13 +58,14 @@ services: arguments: - "@chill.main.helper.translatable_string" - '@Symfony\Component\Routing\Generator\UrlGeneratorInterface' - - '@chill.main.form.choice_loader.postal_code' + - '@Chill\MainBundle\Form\ChoiceLoader\PostalCodeChoiceLoader' - '@Symfony\Component\Translation\TranslatorInterface' tags: - { name: form.type } - chill.main.form.choice_loader.postal_code: - class: Chill\MainBundle\Form\ChoiceLoader\PostalCodeChoiceLoader + Chill\MainBundle\Form\ChoiceLoader\PostalCodeChoiceLoader: + autowire: true + autoconfigure: true chill.main.form.type.export: class: Chill\MainBundle\Form\Type\Export\ExportType