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 ActivityReasonCategoryController extends Controller
*/
private function createCreateForm(ActivityReasonCategory $entity)
{
$form = $this->createForm(new ActivityReasonCategoryType(), $entity, array(
$form = $this->createForm(ActivityReasonCategoryType::class, $entity, array(
'action' => $this->generateUrl('chill_activity_activityreasoncategory_create'),
'method' => 'POST',
));
@@ -138,7 +138,7 @@ class ActivityReasonCategoryController extends Controller
*/
private function createEditForm(ActivityReasonCategory $entity)
{
$form = $this->createForm(new ActivityReasonCategoryType(), $entity, array(
$form = $this->createForm(ActivityReasonCategoryType::class, $entity, array(
'action' => $this->generateUrl('chill_activity_activityreasoncategory_update', array('id' => $entity->getId())),
'method' => 'PUT',
));