Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Open
Description
This mailer configuration example is non equivalent to the Yaml config.
Lines 2102 to 2106 in50f1f4d
| return static function (FrameworkConfig $framework): void { | |
| // ... | |
| $framework->mailer() | |
| ->dsn('null://null'); | |
| }; |
It should be like this:
symfony-docs/configuration.rst
Lines 519 to 534 in50f1f4d
| return static function (WebpackEncoreConfig $webpackEncore, ContainerConfigurator $container): void { | |
| $webpackEncore | |
| ->outputPath('%kernel.project_dir%/public/build') | |
| ->strictMode(true) | |
| ->cache(false) | |
| ; | |
| // cache is enabled only in the "prod" environment | |
| if ('prod' === $container->env()) { | |
| $webpackEncore->cache(true); | |
| } | |
| // disable strict mode only in the "test" environment | |
| if ('test' === $container->env()) { | |
| $webpackEncore->strictMode(false); | |
| } |
The new syntax
namespaceSymfony\Config;returnnewFrameworkConfig(['when@dev' =>'framework' => ['mailer' => ['dsn' =>'null://null', ], ], ],]);
Metadata
Metadata
Assignees
Labels
No labels