-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Finished #3886 #4237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finished #3886 #4237
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ The ``FormEvents::PRE_SET_DATA`` event is dispatched at the beginning of the | |
.. sidebar:: ``FormEvents::PRE_SET_DATA`` in the Form component | ||
|
||
The ``collection`` form type relies on the | ||
:class:`Symfony\\Component\\Form\\Extension\\Core\\EventListener\\ResizeFormListener` | ||
``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener`` | ||
subscriber, listening to the ``FormEvents::PRE_SET_DATA`` event in order | ||
to reorder the form's fields depending on the data from the pre-populated | ||
object, by removing and adding all form rows. | ||
|
@@ -110,7 +110,7 @@ the form. | |
|
||
.. sidebar:: ``FormEvents::POST_SET_DATA`` in the Form component | ||
|
||
The :class:`Symfony\\Component\\Form\\Extension\\DataCollector\\EventListener\\DataCollectorListener` | ||
The ``Symfony\Component\Form\Extension\DataCollector\EventListener\DataCollectorListener`` | ||
class is subscribed to listen to the ``FormEvents::POST_SET_DATA`` event | ||
in order to collect information about the forms from the denormalized | ||
model and view data. | ||
|
@@ -152,10 +152,10 @@ It can be used to: | |
|
||
.. sidebar:: ``FormEvents::PRE_SUBMIT`` in the Form component | ||
|
||
The :class:`Symfony\\Component\\Form\\Extension\\Core\\EventListener\\TrimListener` | ||
The ``Symfony\Component\Form\Extension\Core\EventListener\TrimListener`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
subscriber subscribes to the ``FormEvents::PRE_SUBMIT`` event in order to | ||
trim the request's data (for string values). | ||
The :class:`Symfony\\Component\\Form\\Extension\\Csrf\\EventListener\\CsrfValidationListener` | ||
The ``Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
subscriber subscribes to the ``FormEvents::PRE_SUBMIT`` event in order to | ||
validate the CSRF token. | ||
|
||
|
@@ -186,7 +186,7 @@ It can be used to change data from the normalized representation of the data. | |
|
||
.. sidebar:: ``FormEvents::SUBMIT`` in the Form component | ||
|
||
The :class:`Symfony\\Component\\Form\\Extension\\Core\\EventListener\\ResizeFormListener` | ||
The ``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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. | ||
|
@@ -218,10 +218,10 @@ It can be used to fetch data after denormalization. | |
|
||
.. sidebar:: ``FormEvents::POST_SUBMIT`` in the Form component | ||
|
||
The :class:`Symfony\\Component\\Form\\Extension\\DataCollector\\EventListener\\DataCollectorListener` | ||
The ``Symfony\Component\Form\Extension\DataCollector\EventListener\DataCollectorListener`` | ||
subscribes to the ``FormEvents::POST_SUBMIT`` event in order to collect | ||
information about the forms. | ||
The :class:`Symfony\\Component\\Form\\Extension\\Validator\\EventListener\\ValidationListener` | ||
The ``Symfony\Component\Form\Extension\Validator\EventListener\ValidationListener`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
subscribes to the ``FormEvents::POST_SUBMIT`` event in order to | ||
automatically validate the denormalized object, and update the normalized | ||
as well as the view's representations. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is wrong. The
ResizeFormListener
is present in 2.3: https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php