Skip to content

Commit d91f1c2

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Update mailer.rst Add versionadded in file Add documentation for exponential format number
2 parents 97baf67 + 4d3c978 commit d91f1c2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

components/expression_language/syntax.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ The component supports:
1919
* **hashes** - using JSON-like notation (e.g. ``{ foo: 'bar' }``)
2020
* **booleans** - ``true`` and ``false``
2121
* **null** - ``null``
22+
* **exponential** - also known as scientific (e.g. ``1.99E+3`` or ``1e-2``)
23+
24+
.. versionadded:: 4.4
25+
26+
The ``exponential`` literal was introduced in Symfony 4.4.
2227

2328
.. caution::
2429

components/mailer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ it:
6060
6161
Then, use the SMTP Gmail transport::
6262

63-
use Symfony\Component\Mailer\Bridge\Google\Smtp\GmailTransport;
63+
use Symfony\Component\Mailer\Bridge\Google\Transport\GmailSmtpTransport;
6464
use Symfony\Component\Mailer\Mailer;
6565

66-
$transport = new GmailTransport('user', 'pass');
66+
$transport = new GmailSmtpTransport('user', 'pass');
6767
$mailer = new Mailer($transport);
6868
$mailer->send($email);
6969

0 commit comments

Comments
 (0)