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

[FrameworkBundle] Deprecate auto-injection of the container in AbstractController instances#27462

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

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?no
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

Should enhance DX by preventing situations like#27436.

dunglas reacted with hooray emojichiqui3d reacted with confused emoji
Copy link
Contributor

@curry684curry684 left a comment

Choose a reason for hiding this comment

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

Fair solution for the main underlying confusing issue.

}

privatefunctionconfigureController($controller)
privatefunctionconfigureController($controller,$class)
Copy link
Member

Choose a reason for hiding this comment

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

string $class ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

updated

$controller->setContainer($previousContainer);
if ($controllerinstanceof AbstractController) {
$previousContainer =$controller->setContainer($this->container);
if (null !==$previousContainer) {
Copy link
Member

@dunglasdunglasJun 4, 2018
edited
Loading

Choose a reason for hiding this comment

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

This test can maybe be invertedif (null === $previousContainer) else for clarity?

@nicolas-grekasnicolas-grekas merged commite2f344f intosymfony:masterJun 4, 2018
nicolas-grekas added a commit that referenced this pull requestJun 4, 2018
…ainer in AbstractController instances (nicolas-grekas)This PR was merged into the 4.2-dev branch.Discussion----------[FrameworkBundle] Deprecate auto-injection of the container in AbstractController instances| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Should enhance DX by preventing situations like#27436.Commits-------e2f344f [FrameworkBundle] Deprecate auto-injection of the container in AbstractController instances
@nicolas-grekasnicolas-grekas deleted the deprece-auto-aware branchJune 9, 2018 11:46
@nicolas-grekasnicolas-grekas modified the milestones:next,4.2Nov 1, 2018
This was referencedNov 3, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@dunglasdunglasdunglas approved these changes

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

+4 more reviewers

@TobionTobionTobion approved these changes

@curry684curry684curry684 approved these changes

@ogizanagiogizanagiogizanagi approved these changes

@20uf20uf20uf approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

9 participants

@nicolas-grekas@dunglas@Tobion@curry684@xabbuh@ogizanagi@20uf@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp