@@ -23,7 +23,7 @@ Simple Example: Transforming String Tags from User Input to an Array
2323
2424Suppose you have a Task form with a tags ``text `` type::
2525
26- // src/AppBundle/Form/TaskType.php
26+ // src/AppBundle/Form/Type/ TaskType.php
2727 namespace AppBundle\Form\Type;
2828
2929 use AppBundle\Entity\Task;
@@ -55,7 +55,7 @@ This is a *perfect* time to attach a custom data transformer to the ``tags``
5555field. The easiest way to do this is with the :class: `Symfony\\ Component\\ Form\\ CallbackTransformer `
5656class::
5757
58- // src/AppBundle/Form/TaskType.php
58+ // src/AppBundle/Form/Type/ TaskType.php
5959 namespace AppBundle\Form\Type;
6060
6161 use Symfony\Component\Form\CallbackTransformer;
@@ -116,7 +116,7 @@ issue number.
116116
117117Start by setting up the text field like normal::
118118
119- // src/AppBundle/Form/TaskType.php
119+ // src/AppBundle/Form/Type/ TaskType.php
120120 namespace AppBundle\Form\Type;
121121
122122 use AppBundle\Entity\Task;
@@ -247,7 +247,7 @@ of the entity manager (because ``IssueToNumberTransformer`` needs this).
247247No problem! Just add a ``__construct() `` function to ``TaskType `` and force this
248248to be passed in. Then, you can easily create and add the transformer::
249249
250- // src/AppBundle/Form/TaskType.php
250+ // src/AppBundle/Form/Type/ TaskType.php
251251 namespace AppBundle\Form\Type;
252252
253253 use AppBundle\Form\DataTransformer\IssueToNumberTransformer;
@@ -418,7 +418,7 @@ it's recognized as a custom field type:
418418 Now, whenever you need to use your special ``issue_selector `` field type,
419419it's quite easy::
420420
421- // src/AppBundle/Form/TaskType.php
421+ // src/AppBundle/Form/Type/ TaskType.php
422422 namespace AppBundle\Form\Type;
423423
424424 use AppBundle\Form\DataTransformer\IssueToNumberTransformer;
0 commit comments