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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy