fix missing service declaration + remove unused form method

This commit is contained in:
Mathieu Jaumotte 2022-10-10 17:37:45 +02:00
parent 631111b0c7
commit c41f9d8f5b
3 changed files with 6 additions and 10 deletions

View File

@ -44,7 +44,7 @@ class Select2LocationTypeType extends AbstractType
;
}
public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'select2_location_type_type';
}

View File

@ -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';
}

View File

@ -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: ~