Skip to content

Commit 85bd3c2

Browse files
bdujonkbond
andauthored
[doc] adding ->createView() in normal symfony controller for 5.4
Co-authored-by: Kevin Bond <kevinbond@gmail.com>
1 parent 44ee091 commit 85bd3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ this, create your controller like normal, including the submit logic::
14821482

14831483
return $this->render('post/edit.html.twig', [
14841484
'post' => $post,
1485-
'form' => $form->createView(),
1485+
'form' => $form, // use $form->createView() in Symfony <6.2
14861486
]);
14871487
}
14881488
}

0 commit comments

Comments
 (0)