Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7af3d9f

Browse files
committed
minor #18509 [Form] Remove the deprecated renderForm() shortcut (javiereguiluz)
This PR was merged into the 7.0 branch. Discussion ---------- [Form] Remove the deprecated renderForm() shortcut Related to #18507. Commits ------- bf08b82 [Form] Remove the deprecated renderForm() shortcut
2 parents 4000c0f + bf08b82 commit 7af3d9f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

forms.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,6 @@ Now that the form has been created, the next step is to render it::
282282
Internally, the ``render()`` method calls ``$form->createView()`` to
283283
transform the form into a *form view* instance.
284284

285-
.. deprecated:: 6.2
286-
287-
Prior to Symfony 6.2, you had to use ``$this->render(..., ['form' => $form->createView()])``
288-
or the ``renderForm()`` method to render the form. The ``renderForm()``
289-
method is deprecated in favor of directly passing the ``FormInterface``
290-
instance to ``render()``.
291-
292285
Then, use some :ref:`form helper functions <reference-form-twig-functions>` to
293286
render the form contents:
294287

0 commit comments

Comments
 (0)