Skip to content

Commit cba7e6a

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [Form] Removed Integer scale option Minor fixes Update swiftmailer.rst
2 parents 92c8616 + 77b8a19 commit cba7e6a

File tree

4 files changed

+32
-18
lines changed

4 files changed

+32
-18
lines changed

reference/configuration/swiftmailer.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Configuration
2222
* `transport`_
2323
* `username`_
2424
* `password`_
25+
* `command`_
2526
* `host`_
2627
* `port`_
2728
* `timeout`_
@@ -77,6 +78,13 @@ password
7778

7879
The password when using ``smtp`` as the transport.
7980

81+
command
82+
~~~~~~~~
83+
84+
**type**: ``string`` **default**: ``/usr/sbin/sendmail -bs``
85+
86+
Command to be executed by ``sendmail`` transport.
87+
8088
host
8189
~~~~
8290

reference/forms/types/integer.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ integers. By default, all non-integer values (e.g. 6.78) will round down
1717
| Rendered as | ``input`` ``number`` field |
1818
+-------------+-----------------------------------------------------------------------+
1919
| Options | - `grouping`_ |
20-
| | - `scale`_ |
2120
| | - `rounding_mode`_ |
2221
+-------------+-----------------------------------------------------------------------+
2322
| Overridden | - `compound`_ |
24-
| options | |
23+
| options | - `scale`_ |
2524
+-------------+-----------------------------------------------------------------------+
2625
| Inherited | - `data`_ |
2726
| options | - `disabled`_ |
@@ -47,8 +46,6 @@ Field Options
4746

4847
.. include:: /reference/forms/types/options/grouping.rst.inc
4948

50-
.. include:: /reference/forms/types/options/scale.rst.inc
51-
5249
rounding_mode
5350
~~~~~~~~~~~~~
5451

@@ -83,6 +80,16 @@ Overridden Options
8380

8481
.. include:: /reference/forms/types/options/compound_type.rst.inc
8582

83+
scale
84+
~~~~~
85+
86+
**type**: ``integer`` **default**: ``0``
87+
88+
This specifies how many decimals will be allowed until the field rounds the
89+
submitted value (via ``rounding_mode``). This option inherits from
90+
:doc:`number </reference/forms/types/number>` type and is overriden to ``0`` for
91+
``IntegerType``.
92+
8693
Inherited Options
8794
-----------------
8895

reference/forms/types/number.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,19 @@ Field Options
4242

4343
.. include:: /reference/forms/types/options/grouping.rst.inc
4444

45-
.. include:: /reference/forms/types/options/scale.rst.inc
45+
scale
46+
~~~~~
47+
48+
.. versionadded:: 2.7
49+
The ``scale`` option was introduced in Symfony 2.7. Prior to Symfony 2.7,
50+
it was known as ``precision``.
51+
52+
**type**: ``integer`` **default**: Locale-specific (usually around ``3``)
53+
54+
This specifies how many decimals will be allowed until the field rounds
55+
the submitted value (via ``rounding_mode``). For example, if ``scale`` is set
56+
to ``2``, a submitted value of ``20.123`` will be rounded to, for example,
57+
``20.12`` (depending on your `rounding_mode`_).
4658

4759
rounding_mode
4860
~~~~~~~~~~~~~

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

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)