Skip to content

Commit b59990c

Browse files
atailouloutexabbuh
authored andcommitted
Update events.rst
1 parent b8dcdf9 commit b59990c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

form/events.rst

+8
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ callback for better readability::
312312
// src/AppBundle/Form/SubscriptionType.php
313313
namespace AppBundle\Form;
314314

315+
use Symfony\Component\Form\Extension\Core\Type\TextType;
316+
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
317+
use Symfony\Component\Form\FormEvent;
318+
use Symfony\Component\Form\FormEvents;
319+
315320
// ...
316321
class SubscriptionType extends AbstractType
317322
{
@@ -397,6 +402,9 @@ Event subscribers have different uses:
397402
To register the event subscriber, use the ``addEventSubscriber()`` method::
398403

399404
use AppBundle\Form\EventListener\AddEmailFieldListener;
405+
use Symfony\Component\Form\Extension\Core\Type\TextType;
406+
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
407+
400408
// ...
401409

402410
$form = $formFactory->createBuilder()

0 commit comments

Comments
 (0)