Skip to content

Commit ced63f2

Browse files
ChristopheBoucautxabbuh
authored andcommitted
Update the doc to change a deprecated use case
1 parent 84ded6c commit ced63f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/form/introduction.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ builder:
457457

458458
.. code-block:: php-standalone
459459
460+
use Symfony\Component\Form\Extension\Core\Type\FormType;
460461
use Symfony\Component\Form\Extension\Core\Type\TextType;
461462
use Symfony\Component\Form\Extension\Core\Type\DateType;
462463
@@ -466,7 +467,7 @@ builder:
466467
'dueDate' => new \DateTime('tomorrow'),
467468
);
468469
469-
$form = $formFactory->createBuilder('form', $defaults)
470+
$form = $formFactory->createBuilder(FormType::class, $defaults)
470471
->add('task', TextType::class)
471472
->add('dueDate', DateType::class)
472473
->getForm();

0 commit comments

Comments
 (0)