fix deprecation: no more passing of type instances

This commit is contained in:
nobohan
2018-04-05 11:45:58 +02:00
parent ed00833eb8
commit 478e1c505d
7 changed files with 36 additions and 31 deletions

View File

@@ -63,7 +63,7 @@ class ActivityTypeController extends Controller
*/
private function createCreateForm(ActivityType $entity)
{
$form = $this->createForm(new ActivityTypeType(), $entity, array(
$form = $this->createForm(ActivityTypeType::class, $entity, array(
'action' => $this->generateUrl('chill_activity_activitytype_create'),
'method' => 'POST',
));
@@ -138,7 +138,7 @@ class ActivityTypeController extends Controller
*/
private function createEditForm(ActivityType $entity)
{
$form = $this->createForm(new ActivityTypeType(), $entity, array(
$form = $this->createForm(ActivityTypeType::class, $entity, array(
'action' => $this->generateUrl('chill_activity_activitytype_update', array('id' => $entity->getId())),
'method' => 'PUT',
));