From c41f9d8f5b78170d753ddc0c758ad042612bdb27 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Mon, 10 Oct 2022 17:37:45 +0200 Subject: [PATCH] fix missing service declaration + remove unused form method --- .../ChillMainBundle/Form/Type/Select2LocationTypeType.php | 2 +- .../ChillMainBundle/Form/Type/Select2UserLocationType.php | 8 +------- src/Bundle/ChillMainBundle/config/services/form.yaml | 6 ++++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Form/Type/Select2LocationTypeType.php b/src/Bundle/ChillMainBundle/Form/Type/Select2LocationTypeType.php index 8fd5dbe91..e680b06ca 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/Select2LocationTypeType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/Select2LocationTypeType.php @@ -44,7 +44,7 @@ class Select2LocationTypeType extends AbstractType ; } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'select2_location_type_type'; } diff --git a/src/Bundle/ChillMainBundle/Form/Type/Select2UserLocationType.php b/src/Bundle/ChillMainBundle/Form/Type/Select2UserLocationType.php index e09b63bac..de4a8537d 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/Select2UserLocationType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/Select2UserLocationType.php @@ -17,8 +17,6 @@ use Chill\MainBundle\Templating\TranslatableStringHelper; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; -use Symfony\Component\Form\FormInterface; -use Symfony\Component\Form\FormView; use Symfony\Component\OptionsResolver\OptionsResolver; class Select2UserLocationType extends AbstractType @@ -53,10 +51,6 @@ class Select2UserLocationType extends AbstractType ]); } - public function buildView(FormView $view, FormInterface $form, array $options) - { - } - public function configureOptions(OptionsResolver $resolver) { $resolver @@ -67,7 +61,7 @@ class Select2UserLocationType extends AbstractType ; } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'select2_user_location_type'; } diff --git a/src/Bundle/ChillMainBundle/config/services/form.yaml b/src/Bundle/ChillMainBundle/config/services/form.yaml index f047e8f39..34f5d1802 100644 --- a/src/Bundle/ChillMainBundle/config/services/form.yaml +++ b/src/Bundle/ChillMainBundle/config/services/form.yaml @@ -122,8 +122,6 @@ services: Chill\MainBundle\Form\Type\PickAddressType: ~ - Chill\MainBundle\Form\DataTransform\AddressToIdDataTransformer: ~ - Chill\MainBundle\Form\DataTransform\AddressToIdDataTransformer: autoconfigure: true autowire: true @@ -136,6 +134,10 @@ services: autowire: true autoconfigure: true + Chill\MainBundle\Form\Type\Select2LocationTypeType: + autowire: true + autoconfigure: true + Chill\MainBundle\Form\Type\LocationFormType: ~ Chill\MainBundle\Form\WorkflowStepType: ~