From 773cb0fe77506310c8e6c282e591bb896a09ac11 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Tue, 21 Feb 2023 00:55:18 +0100 Subject: [PATCH] [Mailer] Switching to new config format --- mailer.rst | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/mailer.rst b/mailer.rst index 4099724a68f..1b3e66f2aff 100644 --- a/mailer.rst +++ b/mailer.rst @@ -55,14 +55,10 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``, // config/packages/mailer.php use function Symfony\Component\DependencyInjection\Loader\Configurator\env; - use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; - - return static function (ContainerConfigurator $container): void { - $container->extension('framework', [ - 'mailer' => [ - 'dsn' => env('MAILER_DSN'), - ], - ]); + use Symfony\Config\FrameworkConfig; + + return static function (FrameworkConfig $framework): void { + $framework->mailer()->dsn(env('MAILER_DSN')); }; .. caution::