fix deprecations: systematic use of fqcn in getParent functions

This commit is contained in:
nobohan 2018-04-06 08:10:44 +02:00
parent 2474bb3e5a
commit 7e36eee27a
4 changed files with 37 additions and 33 deletions

View File

@ -22,6 +22,7 @@ namespace Chill\MainBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Chill\MainBundle\Templating\TranslatableStringHelper;
use Chill\MainBundle\Entity\PostalCode;
@ -47,7 +48,7 @@ class PostalCodeType extends AbstractType
public function getParent()
{
return \Symfony\Bridge\Doctrine\Form\Type\EntityType::class;
return EntityType::class;
}
public function configureOptions(OptionsResolver $resolver)

View File

@ -22,6 +22,7 @@ use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
use Doctrine\ORM\EntityRepository;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Chill\MainBundle\Entity\Scope;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Chill\MainBundle\Templating\TranslatableStringHelper;
@ -119,6 +120,6 @@ class ScopePickerType extends AbstractType
public function getParent()
{
return \Symfony\Bridge\Doctrine\Form\Type\EntityType::class;
return EntityType::class;
}
}

View File

@ -22,6 +22,7 @@ namespace Chill\MainBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
/**
* Extends choice to allow adding select2 library on widget
@ -37,7 +38,7 @@ class Select2EntityType extends AbstractType
public function getParent()
{
return 'entity';
return EntityType::class;
}
public function configureOptions(OptionsResolver $resolver)

View File

@ -23,6 +23,7 @@ use Doctrine\ORM\EntityRepository;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Chill\MainBundle\Entity\User;
@ -109,6 +110,6 @@ class UserPickerType extends AbstractType
public function getParent()
{
return \Symfony\Bridge\Doctrine\Form\Type\EntityType::class;
return EntityType::class;
}
}