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

[DependencyInjection] Fix FC with Config v8#62138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:7.4fromnicolas-grekas:config-fc
Oct 23, 2025

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?7.4
Bug fix?yes
New feature?no
Deprecations?no
Issues-
LicenseMIT

Required for#62113

@carsonbotcarsonbot added this to the7.4 milestoneOct 23, 2025
@nicolas-grekasnicolas-grekas merged commitf107568 intosymfony:7.4Oct 23, 2025
12 checks passed
if (\is_bool($generator)) {
$prepend =$generator;
$generator =null;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

should we trigger a deprecation in theelse branch ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The issue is that we should still support config builders, so we'd always trigger that one (unless we go with an extra silencing argument, but as I wrote the other comment, this might be good enough in practice.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We can trigger a deprecation in 8.1

$container->registerExtension(new \AcmeExtension());
$container->prependExtensionConfig('acme', ['foo' =>'bar']);
$loader =newPhpFileLoader($container,newFileLocator(\dirname(__DIR__).'/Fixtures/config'),'prod',newConfigBuilderGenerator(sys_get_temp_dir()),true);
$loader =newPhpFileLoader($container,newFileLocator(\dirname(__DIR__).'/Fixtures/config'),'prod',prepend:true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Tests should not use named parameters. This hides unintentional BC breaks that would be detected due to tests being forced to be updated, by making tests used the public API.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yeah, I did a quick FC layer, that's true :)
I think all this is confidential enough to make it this way.
We can always improve later on.

@nicolas-grekasnicolas-grekas deleted the config-fc branchOctober 23, 2025 17:23
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@GromNaNGromNaNGromNaN left review comments

@stofstofstof left review comments

Assignees

No one assigned

Projects

None yet

Milestone

7.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@GromNaN@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp