@@ -84,8 +84,8 @@ objects::
8484
8585Then, create a form class so that a ``Tag `` object can be modified by the user::
8686
87- // src/Form/Type/ TagType.php
88- namespace App\Form\Type ;
87+ // src/Form/TagType.php
88+ namespace App\Form;
8989
9090 use App\Entity\Tag;
9191 use Symfony\Component\Form\AbstractType;
@@ -114,8 +114,8 @@ form itself, create a form for the ``Task`` class.
114114Notice that you embed a collection of ``TagType `` forms using the
115115:doc: `CollectionType </reference/forms/types/collection >` field::
116116
117- // src/Form/Type/ TaskType.php
118- namespace App\Form\Type ;
117+ // src/Form/TaskType.php
118+ namespace App\Form;
119119
120120 use App\Entity\Task;
121121 use Symfony\Component\Form\AbstractType;
@@ -150,7 +150,7 @@ In your controller, you'll create a new form from the ``TaskType``::
150150
151151 use App\Entity\Tag;
152152 use App\Entity\Task;
153- use App\Form\Type\ TaskType;
153+ use App\Form\TaskType;
154154 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
155155 use Symfony\Component\HttpFoundation\Request;
156156
@@ -254,7 +254,7 @@ type expects to receive exactly two, otherwise an error will be thrown:
254254``This form should not contain extra fields ``. To make this flexible,
255255add the ``allow_add `` option to your collection field::
256256
257- // src/Form/Type/ TaskType.php
257+ // src/Form/TaskType.php
258258
259259 // ...
260260 use Symfony\Component\Form\FormBuilderInterface;
@@ -418,7 +418,7 @@ for the tags in the ``Task`` class::
418418
419419Next, add a ``by_reference `` option to the ``tags `` field and set it to ``false ``::
420420
421- // src/Form/Type/ TaskType.php
421+ // src/Form/TaskType.php
422422
423423 // ...
424424 public function buildForm(FormBuilderInterface $builder, array $options)
@@ -550,7 +550,7 @@ The solution is similar to allowing tags to be added.
550550
551551Start by adding the ``allow_delete `` option in the form Type::
552552
553- // src/Form/Type/ TaskType.php
553+ // src/Form/TaskType.php
554554
555555 // ...
556556 public function buildForm(FormBuilderInterface $builder, array $options)
0 commit comments