Skip to content

Commit ea5a5b9

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Mailer] Switching to new config format
2 parents 97e2c60 + eeb37c4 commit ea5a5b9

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

mailer.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,10 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
5555
5656
// config/packages/mailer.php
5757
use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
58-
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
59-
60-
return static function (ContainerConfigurator $container): void {
61-
$container->extension('framework', [
62-
'mailer' => [
63-
'dsn' => env('MAILER_DSN'),
64-
],
65-
]);
58+
use Symfony\Config\FrameworkConfig;
59+
60+
return static function (FrameworkConfig $framework): void {
61+
$framework->mailer()->dsn(env('MAILER_DSN'));
6662
};
6763
6864
.. caution::

0 commit comments

Comments
 (0)