fix deprecations: use fqcn

This commit is contained in:
nobohan
2018-04-05 12:36:58 +02:00
parent bc6716a5fd
commit d4d14d1a06
2 changed files with 5 additions and 4 deletions

View File

@@ -186,7 +186,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
))
@@ -345,7 +345,7 @@ class ReportController extends Controller
*/
private function createCreateForm(Report $entity, Person $person, $cFGroup)
{
$form = $this->createForm('chill_reportbundle_report', $entity, array(
$form = $this->createForm(ReportType::class, $entity, array(
'action' => $this->generateUrl('report_create',
array('person_id' => $person->getId(),
'cf_group_id' => $cFGroup->getId())),
@@ -430,7 +430,7 @@ class ReportController extends Controller
*/
private function createEditForm(Report $entity)
{
$form = $this->createForm('chill_reportbundle_report', $entity, array(
$form = $this->createForm(ReportType::class, $entity, array(
'action' => $this->generateUrl('report_update',
array('person_id' => $entity->getPerson()->getId(),
'report_id' => $entity->getId())),