diff --git a/cookbook/form/dynamic_form_modification.rst b/cookbook/form/dynamic_form_modification.rst index a798c187db5..0b15b860dc5 100644 --- a/cookbook/form/dynamic_form_modification.rst +++ b/cookbook/form/dynamic_form_modification.rst @@ -475,6 +475,8 @@ The subscriber would now look like:: use Symfony\Component\Form\FormFactoryInterface; use Doctrine\ORM\EntityManager; use Symfony\Component\Form\FormEvent; + use Symfony\Component\Form\FormEvents; + use Symfony\Component\EventDispatcher\EventSubscriberInterface; class RegistrationSportListener implements EventSubscriberInterface {