Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PHP configuration not showing equivalent towhen@dev #21510

Open
@GromNaN

Description

@GromNaN

This mailer configuration example is non equivalent to the Yaml config.

symfony-docs/mailer.rst

Lines 2102 to 2106 in50f1f4d

return static function (FrameworkConfig $framework): void {
// ...
$framework->mailer()
->dsn('null://null');
};

It should be like this:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp