Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitced63f2

Browse files
ChristopheBoucautxabbuh
authored andcommitted
Update the doc to change a deprecated use case
1 parent84ded6c commitced63f2

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)

[8]ページ先頭

©2009-2025 Movatter.jp