mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix deprecations: use fqcn
This commit is contained in:
parent
4b57510cc2
commit
657a4f3fa1
@ -145,7 +145,7 @@ class PersonController extends Controller
|
|||||||
->setCenter($defaultCenter);
|
->setCenter($defaultCenter);
|
||||||
|
|
||||||
$form = $this->createForm(
|
$form = $this->createForm(
|
||||||
CreationPersonType::NAME,
|
CreationPersonType::class,
|
||||||
$person,
|
$person,
|
||||||
array(
|
array(
|
||||||
'action' => $this->generateUrl('chill_person_review'),
|
'action' => $this->generateUrl('chill_person_review'),
|
||||||
|
@ -27,6 +27,7 @@ use Chill\MainBundle\Templating\TranslatableStringHelper;
|
|||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
use Chill\MainBundle\Entity\Country;
|
use Chill\MainBundle\Entity\Country;
|
||||||
use Chill\MainBundle\Export\ExportElementValidatedInterface;
|
use Chill\MainBundle\Export\ExportElementValidatedInterface;
|
||||||
|
use Chill\MainBundle\Form\Type\Select2CountryType;
|
||||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -55,7 +56,7 @@ class NationalityFilter implements FilterInterface,
|
|||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
{
|
{
|
||||||
$builder->add('nationalities', 'select2_chill_country', array(
|
$builder->add('nationalities', Select2CountryType::class, array(
|
||||||
'placeholder' => 'Choose countries'
|
'placeholder' => 'Choose countries'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user