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

[HttpKernel] Remove always-true condition on existence of DIAutowire class#60079

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
GromNaN merged 1 commit intosymfony:7.3fromGromNaN:clean-autowire
Mar 28, 2025

Conversation

@GromNaN
Copy link
Member

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

This condition was introduced in#45657

The classRegisterControllerArgumentLocatorsPass requires the DI component, which cannot be < 6.4 due to aconflict rule in composer.json. So theAutoconfigure class always exists.

matyo91 reacted with rocket emoji
Introduced insymfony#45657symfony/dependency-injection 6.4+ is required, so the class always exists
$type =preg_replace('/(^|[(|&])\\\\/','\1',$target =ltrim(ProxyHelper::exportType($p) ??'','?'));
$invalidBehavior = ContainerInterface::IGNORE_ON_INVALID_REFERENCE;
$autowireAttributes =$autowire ?$emptyAutowireAttributes : [];
$autowireAttributes =null;
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The variable$autowireAttributes is used in 1 place when$autowire istrue. But still need to be reset on each loop.

@chalasr
Copy link
Member

For 7.2?

@GromNaN
Copy link
MemberAuthor

For 7.2?

That's a minor cleanup, not a bug. So I think therule is to merge into 7.3.

@GromNaNGromNaN merged commitd442a43 intosymfony:7.3Mar 28, 2025
10 of 11 checks passed
@GromNaNGromNaN deleted the clean-autowire branchMarch 28, 2025 23:21
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kbondkbondkbond approved these changes

@mtarldmtarldmtarld approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

7.3

Development

Successfully merging this pull request may close these issues.

5 participants

@GromNaN@chalasr@kbond@mtarld@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp