-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Description
This mailer configuration example is non equivalent to the Yaml config.
Lines 2102 to 2106 in 50f1f4d
return static function (FrameworkConfig $framework): void { | |
// ... | |
$framework->mailer() | |
->dsn('null://null'); | |
}; |
It should be like this:
symfony-docs/configuration.rst
Lines 519 to 534 in 50f1f4d
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
namespace Symfony\Config;
return new FrameworkConfig([
'when@dev' =>
'framework' => [
'mailer' => [
'dsn' => 'null://null',
],
],
],
]);
Metadata
Metadata
Assignees
Labels
No labels