We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab0b2da commit 91dbdbfCopy full SHA for 91dbdbf
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 $containerConfigurator): void {
61
- $containerConfigurator->extension('framework', [
62
- 'mailer' => [
63
- 'dsn' => env('MAILER_DSN'),
64
- ],
65
- ]);
+ use Symfony\Config\FrameworkConfig;
+
+ return static function (FrameworkConfig $frameworkConfig): void {
+ $frameworkConfig->mailer()->dsn(env('MAILER_DSN')->string());
66
};
67
68
.. caution::
0 commit comments