From 7eeaec7047fb7f2287a2f046bdc5d39d51a9d318 Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 5 Apr 2018 12:21:06 +0200 Subject: [PATCH] fix deprecations: use fqcn for FormType --- Controller/CustomFieldsGroupController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Controller/CustomFieldsGroupController.php b/Controller/CustomFieldsGroupController.php index 7f6318d20..6f7d643a2 100644 --- a/Controller/CustomFieldsGroupController.php +++ b/Controller/CustomFieldsGroupController.php @@ -7,6 +7,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; +use Symfony\Component\Form\Extension\Core\Type\FormType; use Doctrine\ORM\Query; use Chill\CustomFieldsBundle\Entity\CustomFieldsGroup; @@ -248,7 +249,7 @@ class CustomFieldsGroupController extends Controller ->setCustomFieldsGroup($customFieldsGroup); $builder = $this->get('form.factory') - ->createNamedBuilder(null, 'form', $customfield, array( + ->createNamedBuilder(null, FormType::class, $customfield, array( 'method' => 'GET', 'action' => $this->generateUrl('customfield_new'), 'csrf_protection' => false