fix deprecations: use fqcn in the activity bundle

This commit is contained in:
nobohan
2018-04-05 10:34:41 +02:00
parent b6f9d1156e
commit 6327d25783
7 changed files with 69 additions and 60 deletions

View File

@@ -6,6 +6,7 @@ use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Chill\MainBundle\Form\Type\TranslatableStringFormType;
class ActivityTypeType extends AbstractType
{
@@ -16,7 +17,7 @@ class ActivityTypeType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('name', 'translatable_string')
->add('name', TranslatableStringFormType::class)
->add('active', ChoiceType::class, array(
'choices' => array(
'Yes' => true,
@@ -26,7 +27,7 @@ class ActivityTypeType extends AbstractType
'expanded' => true
));
}
/**
* @param OptionsResolverInterface $resolver
*/