From 4794492662bb87e7f5b8fbab2e6f557679339dc0 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 10 Dec 2015 09:03:17 -0500 Subject: [PATCH] Clarify example for SUBMIT form event It's indicated in the docs that form field cannot be added/removed by listeners of the SUBMIT form event, but the example provided was removing fields. While it's possible to do so, it's not recommended since it has little effect. Replaced with a different example implementation. --- components/form/form_events.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/form/form_events.rst b/components/form/form_events.rst index d89e4ca5e89..51fac8e426d 100644 --- a/components/form/form_events.rst +++ b/components/form/form_events.rst @@ -178,10 +178,9 @@ View data Same as in ``FormEvents::POST_SET_DATA`` .. sidebar:: ``FormEvents::SUBMIT`` in the Form component - The ``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener`` - subscribes to the ``FormEvents::SUBMIT`` event in order to remove the - fields that need to be removed whenever manipulating a collection of forms - for which ``allow_delete`` has been enabled. + The ``Symfony\Component\Form\Extension\Core\EventListener\FixUrlProtocolListener`` + subscribes to the ``FormEvents::SUBMIT`` event in order to prepend a default + protocol to URL field data that was submitted without a protocol. C) The ``FormEvents::POST_SUBMIT`` Event ........................................