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 {
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: