From 703ecae51e158cf0eee27243a7fcc7ae08b32703 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Wed, 27 Jul 2022 10:56:02 +0200 Subject: [PATCH] Adding missing `use`s --- form/create_custom_field_type.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/form/create_custom_field_type.rst b/form/create_custom_field_type.rst index 2d13673be33..c88c11fcd3f 100644 --- a/form/create_custom_field_type.rst +++ b/form/create_custom_field_type.rst @@ -148,7 +148,7 @@ These are the most important methods that a form type class can define: ``finishView()`` When creating a form type that consists of many fields, this method allows to modify the "view" of any of those fields. For any other use case, it's - recommended to use instead the ``buildView()`` method. + recommended to use ``buildView()`` instead. ``getParent()`` 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:: namespace App\Form\Type; use Doctrine\ORM\EntityManagerInterface; + use Symfony\Component\Form\FormInterface; + use Symfony\Component\Form\FormView; // ... class PostalAddressType extends AbstractType