Skip to content

Commit 6867e4e

Browse files
committed
Fix use statements
DataEvent is deprecated since 2.1, to be removed in 2.3.
1 parent 56d7ff0 commit 6867e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/form/dynamic_form_generation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ might look like the following::
9191
// src/Acme/DemoBundle/Form/EventListener/AddNameFieldSubscriber.php
9292
namespace Acme\DemoBundle\Form\EventListener;
9393

94-
use Symfony\Component\Form\Event\DataEvent;
94+
use Symfony\Component\Form\FormEvent;
95+
use Symfony\Component\Form\FormEvents;
9596
use Symfony\Component\Form\FormFactoryInterface;
9697
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
97-
use Symfony\Component\Form\FormEvents;
9898

9999
class AddNameFieldSubscriber implements EventSubscriberInterface
100100
{

0 commit comments

Comments
 (0)