Skip to content

Commit 44b6735

Browse files
authored
Merge pull request #39 from sumocoders/fix-forms
Fix forms for turbo
2 parents 891a122 + 883e72a commit 44b6735

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/Controller/User/Admin/AddUserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __invoke(
3737
}
3838

3939
return $this->render('user/admin/add.html.twig', [
40-
'form' => $form->createView(),
40+
'form' => $form,
4141
]);
4242
}
4343
}

src/Controller/User/Admin/OverviewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __invoke(
3333
$paginatedUsers->paginate($page);
3434

3535
return $this->render('user/admin/overview.html.twig', [
36-
'form' => $form->createView(),
36+
'form' => $form,
3737
'users' => $paginatedUsers,
3838
]);
3939
}

src/Controller/User/ConfirmController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __invoke(
6060
}
6161

6262
return $this->render('user/confirm.html.twig', [
63-
'form' => $confirmForm->createView(),
63+
'form' => $confirmForm,
6464
]);
6565
}
6666
}

src/Controller/User/ForgotPasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __invoke(
2828
}
2929

3030
return $this->render('user/forgot.html.twig', [
31-
'form' => $form->createView(),
31+
'form' => $form,
3232
]);
3333
}
3434
}

src/Controller/User/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __invoke(
2626
return $this->render('user/login.html.twig', [
2727
'error' => $authenticationUtils->getLastAuthenticationError(),
2828
'last_username' => $authenticationUtils->getLastUsername(),
29-
'form' => $form->createView(),
29+
'form' => $form,
3030
]);
3131
}
3232
}

src/Controller/User/ProfileController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __invoke(
4141

4242
return $this->render('user/profile.html.twig', [
4343
'user' => $this->getUser(),
44-
'form' => $form->createView(),
44+
'form' => $form,
4545
]);
4646
}
4747
}

src/Controller/User/RegisterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __invoke(
3030
}
3131

3232
return $this->render('user/register.html.twig', [
33-
'form' => $form->createView(),
33+
'form' => $form,
3434
]);
3535
}
3636
}

src/Controller/User/ResetPasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __invoke(
5050
}
5151

5252
return $this->render('user/reset.html.twig', [
53-
'form' => $form->createView(),
53+
'form' => $form,
5454
]);
5555
}
5656
}

0 commit comments

Comments
 (0)