We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentb56880b commitbe54971Copy full SHA for be54971
best_practices/forms.rst
@@ -71,13 +71,9 @@ Registering Forms as Services
71
72
You can also
73
:ref:`register your form type as a service<form-cookbook-form-field-service>`.
74
-But this is *not* recommended unless you plan to reuse the new form type in many
75
-places or embed it in other forms directly or via the
76
-:doc:`CollectionType</reference/forms/types/collection>`.
77
-
78
-For most forms that are used only to edit or create something, registering
79
-the form as a service is over-kill, and makes it more difficult to figure
80
-out exactly which form class is being used in a controller.
+This is only needed if your form type requires some dependencies to be injected
+by the container, otherwise it is unnecessary overhead and therefore *not*
+recommended to do this for all form type classes.
81
82
Form Button Configuration
83
-------------------------