Skip to content

Commit 398f6ad

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: [Mailer] add more info for debugging [HttpCache] Inject $env in example
2 parents 5bde334 + ea50dc7 commit 398f6ad

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

http_cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Use the ``framework.http_cache`` option to enable the proxy for the
114114
// config/packages/framework.php
115115
use Symfony\Config\FrameworkConfig;
116116
117-
return static function (FrameworkConfig $framework) use ($env) {
117+
return static function (FrameworkConfig $framework, string $env) {
118118
if ('prod' === $env) {
119119
$framework->httpCache()->enabled(true);
120120
}

mailer.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,12 @@ provides access to the original message (``getOriginalMessage()``) and to some
651651
debug information (``getDebug()``) such as the HTTP calls done by the HTTP
652652
transports, which is useful to debug errors.
653653

654+
.. note::
655+
656+
If your code used :class:`Symfony\\Component\\Mailer\\MailerInterface`, you
657+
need to replace it by :class:`Symfony\\Component\\Mailer\\Transport\\TransportInterface`
658+
to have the ``SentMessage`` object returned.
659+
654660
.. note::
655661

656662
Some mailer providers change the ``Message-Id`` when sending the email. The

0 commit comments

Comments
 (0)