Skip to content

Commit

Permalink
minor #6139 Update the doc to change a deprecated use case (Christoph…
Browse files Browse the repository at this point in the history
…eBoucaut)

This PR was submitted for the 3.0 branch but it was merged into the 2.8 branch instead (closes #6139).

Discussion
----------

Update the doc to change a deprecated use case

Commits
-------

ced63f2 Update the doc to change a deprecated use case
  • Loading branch information
xabbuh committed Jan 13, 2016
2 parents 84ded6c + ced63f2 commit 8f6038b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/form/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 8f6038b

Please sign in to comment.