Skip to content

Commit

Permalink
Merge branch '3.4' into 4.0
Browse files Browse the repository at this point in the history
* 3.4:
  Long line wrapping
  [Form] Removed Integer scale option
  Minor fixes
  Update swiftmailer.rst
  • Loading branch information
weaverryan committed Apr 30, 2018
2 parents 93f788b + 3ef5c40 commit 80fd0a6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
8 changes: 8 additions & 0 deletions reference/configuration/swiftmailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Configuration
* `transport`_
* `username`_
* `password`_
* `command`_
* `host`_
* `port`_
* `timeout`_
Expand Down Expand Up @@ -77,6 +78,13 @@ password

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

command
~~~~~~~~

**type**: ``string`` **default**: ``/usr/sbin/sendmail -bs``

Command to be executed by ``sendmail`` transport.

host
~~~~

Expand Down
15 changes: 11 additions & 4 deletions reference/forms/types/integer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ integers. By default, all non-integer values (e.g. 6.78) will round down
| Rendered as | ``input`` ``number`` field |
+-------------+-----------------------------------------------------------------------+
| Options | - `grouping`_ |
| | - `scale`_ |
| | - `rounding_mode`_ |
+-------------+-----------------------------------------------------------------------+
| Overridden | - `compound`_ |
| options | |
| options | - `scale`_ |
+-------------+-----------------------------------------------------------------------+
| Inherited | - `data`_ |
| options | - `disabled`_ |
Expand All @@ -46,8 +45,6 @@ Field Options

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

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

rounding_mode
~~~~~~~~~~~~~

Expand Down Expand Up @@ -82,6 +79,16 @@ Overridden Options

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

scale
~~~~~

**type**: ``integer`` **default**: ``0``

This specifies how many decimals will be allowed until the field rounds the
submitted value (via ``rounding_mode``). This option inherits from
:doc:`number </reference/forms/types/number>` type and is overriden to ``0`` for
``IntegerType``.

Inherited Options
-----------------

Expand Down
14 changes: 13 additions & 1 deletion reference/forms/types/number.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,19 @@ Field Options

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

.. include:: /reference/forms/types/options/scale.rst.inc
scale
~~~~~

.. versionadded:: 2.7
The ``scale`` option was introduced in Symfony 2.7. Prior to Symfony 2.7,
it was known as ``precision``.

**type**: ``integer`` **default**: Locale-specific (usually around ``3``)

This specifies how many decimals will be allowed until the field rounds
the submitted value (via ``rounding_mode``). For example, if ``scale`` is set
to ``2``, a submitted value of ``20.123`` will be rounded to, for example,
``20.12`` (depending on your `rounding_mode`_).

rounding_mode
~~~~~~~~~~~~~
Expand Down

0 comments on commit 80fd0a6

Please sign in to comment.