mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
fix deprecations: use fqcn
This commit is contained in:
@@ -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())),
|
||||
|
Reference in New Issue
Block a user