fix deprecations: use fqcn for FormType

This commit is contained in:
nobohan 2018-04-05 08:07:15 +02:00
parent 6bf4f68f0d
commit 4519a1c92c

View File

@ -25,6 +25,7 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Form\Extension\Core\Type\FormType;
use Chill\PersonBundle\Entity\Person;
use Chill\ReportBundle\Entity\Report;
@ -132,7 +133,7 @@ class ReportController extends Controller
}
$form = $this->get('form.factory')
->createNamedBuilder(null, 'form', null, array(
->createNamedBuilder(null, FormType::class, null, array(
'method' => 'GET',
'csrf_protection' => false
))