Skip to content

Commit fa02713

Browse files
committed
minor #17066 [Form] Adding missing uses (ThomasLandauer)
This PR was merged into the 4.4 branch. Discussion ---------- [Form] Adding missing `use`s Commits ------- 703ecae Adding missing `use`s
2 parents 0fd8758 + 703ecae commit fa02713

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

form/create_custom_field_type.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ These are the most important methods that a form type class can define:
148148
``finishView()``
149149
When creating a form type that consists of many fields, this method allows
150150
to modify the "view" of any of those fields. For any other use case, it's
151-
recommended to use instead the ``buildView()`` method.
151+
recommended to use ``buildView()`` instead.
152152

153153
``getParent()``
154154
If your custom type is based on another type (i.e. they share some
@@ -471,6 +471,8 @@ defined by the form or be completely independent::
471471
namespace App\Form\Type;
472472

473473
use Doctrine\ORM\EntityManagerInterface;
474+
use Symfony\Component\Form\FormInterface;
475+
use Symfony\Component\Form\FormView;
474476
// ...
475477

476478
class PostalAddressType extends AbstractType

0 commit comments

Comments
 (0)