Skip to content

Commit 8e1d03f

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Update Form event diagrams to consistent styling
2 parents edbb23a + 62e5004 commit 8e1d03f

File tree

8 files changed

+210
-8
lines changed

8 files changed

+210
-8
lines changed
-10.2 KB
Binary file not shown.
-8.39 KB
Binary file not shown.
-10 KB
Binary file not shown.
Lines changed: 56 additions & 0 deletions
Loading
Lines changed: 78 additions & 0 deletions
Loading

_images/form/form_workflow.svg

Lines changed: 68 additions & 0 deletions
Loading

_images/sources/form/form_events.dia

3.1 KB
Binary file not shown.

form/events.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ register an event listener to the ``FormEvents::PRE_SUBMIT`` event as follows::
3232
The Form Workflow
3333
-----------------
3434

35-
The Form Submission Workflow
36-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35+
.. raw:: html
3736

38-
.. image:: /_images/components/form/general_flow.png
39-
:align: center
37+
<object data="../_images/form/form_workflow.svg" type="image/svg+xml"></object>
4038

4139
1) Pre-populating the Form (``FormEvents::PRE_SET_DATA`` and ``FormEvents::POST_SET_DATA``)
4240
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4341

44-
.. image:: /_images/components/form/set_data_flow.png
45-
:align: center
42+
.. raw:: html
43+
44+
<object data="../_images/form/form_prepopulation_workflow.svg" type="image/svg+xml"></object>
4645

4746
Two events are dispatched during pre-population of a form, when
4847
:method:`Form::setData() <Symfony\\Component\\Form\\Form::setData>`
@@ -118,8 +117,9 @@ View data Normalized data transformed using a view transformer
118117
2) Submitting a Form (``FormEvents::PRE_SUBMIT``, ``FormEvents::SUBMIT`` and ``FormEvents::POST_SUBMIT``)
119118
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
120119

121-
.. image:: /_images/components/form/submission_flow.png
122-
:align: center
120+
.. raw:: html
121+
122+
<object data="../_images/form/form_submission_workflow.svg" type="image/svg+xml"></object>
123123

124124
Three events are dispatched when
125125
:method:`Form::handleRequest() <Symfony\\Component\\Form\\Form::handleRequest>`

0 commit comments

Comments
 (0)