@@ -200,7 +200,7 @@ use the ``createForm()`` helper (otherwise, use the ``create()`` method of the
200
200
201
201
// src/Controller/TaskController.php
202
202
namespace App\Controller;
203
-
203
+
204
204
use App\Form\Type\TaskType;
205
205
// ...
206
206
@@ -232,7 +232,7 @@ the ``data_class`` option by adding the following to your form type class::
232
232
233
233
// src/Form/Type/TaskType.php
234
234
namespace App\Form\Type;
235
-
235
+
236
236
use App\Entity\Task;
237
237
use Symfony\Component\OptionsResolver\OptionsResolver;
238
238
// ...
@@ -524,7 +524,7 @@ object.
524
524
525
525
// src/Entity/Task.php
526
526
namespace App\Entity;
527
-
527
+
528
528
use Symfony\Component\Validator\Constraints\NotBlank;
529
529
use Symfony\Component\Validator\Constraints\Type;
530
530
use Symfony\Component\Validator\Mapping\ClassMetadata;
@@ -562,7 +562,7 @@ argument of ``createForm()``::
562
562
563
563
// src/Controller/TaskController.php
564
564
namespace App\Controller;
565
-
565
+
566
566
use App\Form\Type\TaskType;
567
567
// ...
568
568
@@ -588,7 +588,7 @@ options they accept using the ``configureOptions()`` method::
588
588
589
589
// src/Form/Type/TaskType.php
590
590
namespace App\Form\Type;
591
-
591
+
592
592
use Symfony\Component\OptionsResolver\OptionsResolver;
593
593
// ...
594
594
@@ -769,13 +769,13 @@ method::
769
769
770
770
// src/Controller/TaskController.php
771
771
namespace App\Controller;
772
-
772
+
773
773
use App\Form\TaskType;
774
774
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
775
775
776
776
class TaskController extends AbstractController
777
777
{
778
- public function newAction ()
778
+ public function new ()
779
779
{
780
780
$task = ...;
781
781
$form = $this->get('form.factory')->createNamed('my_name', TaskType::class, $task);
0 commit comments