8000 Merge branch '4.4' into 5.1 · symfony/symfony-docs@dd5bf42 · GitHub
[go: up one dir, main page]

Skip to content

Commit dd5bf42

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Add a link to PHPUnit doc Update testing.rst fix default value of choice_translation_domain for choice types
2 parents d3a29ed + 6562aec commit dd5bf42

14 files changed

+41
-16
lines changed

reference/forms/types/birthday.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Inherited Options
7272

7373
These options inherit from the :doc:`DateType </reference/forms/types/date>`:
7474

75-
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
75+
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc
7676

7777
.. include:: /reference/forms/types/options/days.rst.inc
7878

reference/forms/types/choice.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ correct types will be assigned to the model.
225225

226226
.. include:: /reference/forms/types/options/choice_name.rst.inc
227227

228-
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
228+
.. include:: /reference/forms/types/options/choice_translation_domain_enabled.rst.inc
229229

230230
.. include:: /reference/forms/types/options/choice_value.rst.inc
231231

reference/forms/types/country.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
2525
| | - `choice_translation_locale`_ |
2626
+-------------+-----------------------------------------------------------------------+
2727
| Overridden | - `choices`_ |
28-
| options | |
28+
| options | - `choice_translation_domain`_ |
2929
+-------------+-----------------------------------------------------------------------+
3030
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
3131
| options | |
@@ -90,6 +90,8 @@ The locale is used to translate the countries names.
9090
If you want to override the built-in choices of the country type, you
9191
will also have to set the ``choice_loader`` option to ``null``.
9292

93+
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc
94+
9395
Inherited Options
9496
-----------------
9597

reference/forms/types/currency.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
1717
| Options | - `choice_translation_locale`_ |
1818
+-------------+------------------------------------------------------------------------+
1919
| Overridden | - `choices`_ |
20-
| options | |
20+
| options | - `choice_translation_domain`_ |
2121
+-------------+------------------------------------------------------------------------+
2222
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
2323
| options | |
@@ -71,6 +71,8 @@ The choices option defaults to all currencies.
7171
If you want to override the built-in choices of the currency type, you
7272
will also have to set the ``choice_loader`` option to ``null``.
7373

74+
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc
75+
7476
Inherited Options
7577
-----------------
7678

reference/forms/types/date.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ and can understand a number of different input formats via the `input`_ option.
1515
+----------------------+-----------------------------------------------------------------------------+
1616
| Rendered as | single text box or three select fields |
< 9E88 /code>
1717
+----------------------+-----------------------------------------------------------------------------+
18-
| Options | - `choice_translation_domain`_ |
19-
| | - `days`_ |
18+
| Options | - `days`_ |
2019
| | - `placeholder`_ |
2120
| | - `format`_ |
2221
| | - `html5`_ |
@@ -29,6 +28,7 @@ and can understand a number of different input formats via the `input`_ option.
2928
| | - `years`_ |
3029
+----------------------+-----------------------------------------------------------------------------+
3130
| Overridden options | - `by_reference`_ |
31+
| | - `choice_translation_domain`_ |
3232
| | - `compound`_ |
3333
| | - `data_class`_ |
3434
| | - `error_bubbling`_ |
@@ -143,8 +143,6 @@ that Symfony should expect via the `format`_ option.
143143
Field Options
144144
-------------
145145

146-
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
147-
148146
.. include:: /reference/forms/types/options/days.rst.inc
149147

150148
``placeholder``
@@ -201,6 +199,8 @@ Overridden Options
201199

202200
The ``DateTime`` classes are treated as immutable objects.
203201

202+
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc
203+
204204
.. include:: /reference/forms/types/options/compound_type.rst.inc
205205

206206
.. include:: /reference/forms/types/options/data_class_date.rst.inc

reference/forms/types/entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ These options inherit from the :doc:`ChoiceType </reference/forms/types/choice>`
273273

274274
.. include:: /reference/forms/types/options/choice_attr.rst.inc
275275

276-
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
276+
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc
277277

278278
.. include:: /reference/forms/types/options/expanded.rst.inc
279279

reference/forms/types/language.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
2828
| | - `choice_translation_locale`_ |
2929
+-------------+------------------------------------------------------------------------+
3030
| Overridden | - `choices`_ |
31-
| options | |
31+
| options | - `choice_translation_domain`_ |
3232
+-------------+------------------------------------------------------------------------+
3333
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
3434
| options | |
@@ -112,6 +112,8 @@ The default locale is used to translate the languages names.
112112
If you want to override the built-in choices of the language type, you
113113
will also have to set the ``choice_loader`` option to ``null``.
114114

115+
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc
116+
115117
Inherited Options
116118
-----------------
117119

reference/forms/types/locale.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
2727
| Options | - `choice_translation_locale`_ |
2828
+-------------+------------------------------------------------------------------------+
2929
| Overridden | - `choices`_ |
30-
| options | |
30+
| options | - `choice_translation_domain`_ |
3131
+-------------+------------------------------------------------------------------------+
3232
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
3333
| options | |
@@ -83,6 +83,8 @@ specify the language.
8383
If you want to override the built-in choices of the locale type, you
8484
will also have to set the ``choice_loader`` option to ``null``.
8585

86+
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc
87+
8688
Inherited Options
8789
-----------------
8890

reference/forms/types/options/choice_translation_domain.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
``choice_translation_domain``
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

4-
**type**: ``string``, ``boolean`` or ``null``
4+
DEFAULT_VALUE
55

66
This option determines if the choice values should be translated and in which
77
translation domain.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
2+
:end-before: DEFAULT_VALUE
3+
4+
**type**: ``string``, ``boolean`` or ``null`` **default**: ``false``
5+
6+
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
7+
:start-after: DEFAULT_VALUE
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
2+
:end-before: DEFAULT_VALUE
3+
4+
**type**: ``string``, ``boolean`` or ``null`` **default**: ``true``
5+
6+
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
7+
:start-after: DEFAULT_VALUE

reference/forms/types/time.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ values.
9090
Field Options
9191
-------------
9292

93-
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
93+
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc
9494

9595
placeholder
9696
~~~~~~~~~~~

reference/forms/types/timezone.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
2121
| | - `intl`_ |
2222
+-------------+------------------------------------------------------------------------+
2323
| Overridden | - `choices`_ |
24-
| options | |
24+
| options | - `choice_translation_domain`_ |
2525
+-------------+------------------------------------------------------------------------+
2626
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
2727
| options | |
@@ -106,6 +106,8 @@ The Timezone type defaults the choices to all timezones returned by
106106
If you want to override the built-in choices of the timezone type, you
107107
will also have to set the ``choice_loader`` option to ``null``.
108108

109+
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc
110+
109111
Inherited Options
110112
-----------------
111113

testing.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Symfony application.
4848

4949
.. tip::
5050

51-
Code coverage can be generated with the ``--coverage-*`` options, see the
52-
help information that is shown when using ``--help`` for more information.
51+
Use the ``--coverage-*`` command options to generate code coverage reports.
52+
Read the PHPUnit manual to learn more about `code coverage analysis`_.
5353

5454
.. index::
5555
single: Tests; Unit tests
@@ -1181,3 +1181,4 @@ Learn more
11811181
.. _`unit test`: https://en.wikipedia.org/wiki/Unit_testing
11821182
.. _`$_SERVER`: https://www.php.net/manual/en/reserved.variables.server.php
11831183
.. _`data providers`: https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers
1184+
.. _`code coverage analysis`: https://phpunit.readthedocs.io/en/9.1/code-coverage-analysis.html

0 commit comments

Comments
 (0)
0