fix deprecations: use fqcn

This commit is contained in:
nobohan 2018-04-09 10:50:48 +02:00
parent 4b57510cc2
commit 657a4f3fa1
2 changed files with 17 additions and 16 deletions

View File

@ -145,7 +145,7 @@ class PersonController extends Controller
->setCenter($defaultCenter);
$form = $this->createForm(
CreationPersonType::NAME,
CreationPersonType::class,
$person,
array(
'action' => $this->generateUrl('chill_person_review'),

View File

@ -27,6 +27,7 @@ use Chill\MainBundle\Templating\TranslatableStringHelper;
use Doctrine\ORM\EntityRepository;
use Chill\MainBundle\Entity\Country;
use Chill\MainBundle\Export\ExportElementValidatedInterface;
use Chill\MainBundle\Form\Type\Select2CountryType;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
/**
@ -55,7 +56,7 @@ class NationalityFilter implements FilterInterface,
public function buildForm(FormBuilderInterface $builder)
{
$builder->add('nationalities', 'select2_chill_country', array(
$builder->add('nationalities', Select2CountryType::class, array(
'placeholder' => 'Choose countries'
));