There was an error while loading. Please reload this page.
1 parent 024f3d8 commit 773cb0fCopy full SHA for 773cb0f
mailer.rst
@@ -55,14 +55,10 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
55
56
// config/packages/mailer.php
57
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
- ]);
+ use Symfony\Config\FrameworkConfig;
+
+ return static function (FrameworkConfig $framework): void {
+ $framework->mailer()->dsn(env('MAILER_DSN'));
66
};
67
68
.. caution::
0 commit comments