From ced63f2bd1981fac00f1c89e9eeaf6d857f377bc Mon Sep 17 00:00:00 2001 From: Christophe Boucaut Date: Wed, 13 Jan 2016 09:35:40 +0100 Subject: [PATCH] Update the doc to change a deprecated use case --- components/form/introduction.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/form/introduction.rst b/components/form/introduction.rst index 36a13fb9d28..e6909758014 100644 --- a/components/form/introduction.rst +++ b/components/form/introduction.rst @@ -457,6 +457,7 @@ builder: .. code-block:: php-standalone + use Symfony\Component\Form\Extension\Core\Type\FormType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\DateType; @@ -466,7 +467,7 @@ builder: 'dueDate' => new \DateTime('tomorrow'), ); - $form = $formFactory->createBuilder('form', $defaults) + $form = $formFactory->createBuilder(FormType::class, $defaults) ->add('task', TextType::class) ->add('dueDate', DateType::class) ->getForm();