Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eeb37c4

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Mailer] Switching to new config format
2 parents cab1b2d + 79593e9 commit eeb37c4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

mailer.rst

+4-8
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)