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

[DI] Fix anonymous factories/configurators support#22279

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

Closed
GuilhemN wants to merge2 commits intosymfony:masterfromGuilhemN:FACTORY

Conversation

@GuilhemN
Copy link
Contributor

@GuilhemNGuilhemN commentedApr 4, 2017
edited
Loading

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#21999 (comment)
LicenseMIT
Doc PR

Using prototypes / instanceof conditionals, anonymous factories are inlined usingDefinition, so a new instance will be created for every service created from the prototype / conditional which is inconsistent with the way other anonymous services are managed.

if ($function =$factory->getAttribute('function')) {
$definition->setFactory($function);
}else {
$factoryService =$this->getChildren($factory,'service');
Copy link
Member

@nicolas-grekasnicolas-grekasApr 5, 2017
edited
Loading

Choose a reason for hiding this comment

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

why keep this line? was is useless?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

That's a mistake :) Thanks !

@nicolas-grekasnicolas-grekas added this to the3.3 milestoneApr 5, 2017
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

@fabpot
Copy link
Member

Thank you@GuilhemN.

@GuilhemNGuilhemN deleted the FACTORY branchApril 5, 2017 13:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

4 participants

@GuilhemN@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp