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] fixed definition loosing property shared when decorated by a parent definition#16926

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
wahler wants to merge2 commits intosymfony:2.8fromwahler:di-shared-parent

Conversation

@wahler
Copy link

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

While upgrading my applications from 2.7 and 2.8 I found out that the attribute "shared" gets lost when a parent is configured. I wrote a Test to confirm my assumption and added a bugfix

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO you should put thissetShared(false) in the definition of the parent service in order to test if we pass the same shared value to their childrens.

Copy link
Member

Choose a reason for hiding this comment

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

@dosten the shared flag is always taken from the child (same than the scope in 2.x, as this is the replacement for the scope)

@ivarb
Copy link

Also noticed this bug while upgrading from 2.7 to 2.8. Would very much appreciate this patch in 2.8 👍

@nicolas-grekas
Copy link
Member

👍
Status: reviewed

@fabpot
Copy link
Member

Thank you@wahler.

fabpot added a commit that referenced this pull requestDec 18, 2015
…ared when decorated by a parent definition (wahler)This PR was squashed before being merged into the 2.8 branch (closes#16926).Discussion----------[DependencyInjection] fixed definition loosing property shared when decorated by a parent definition| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |While upgrading my applications from 2.7 and 2.8 I found out that the attribute "shared" gets lost when a parent is configured. I wrote a Test to confirm my assumption and added a bugfixCommits-------d3a4a77 [DependencyInjection] fixed definition loosing property shared when decorated by a parent definition
@fabpotfabpot closed thisDec 18, 2015
This was referencedDec 26, 2015
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

8 participants

@wahler@ivarb@nicolas-grekas@fabpot@stof@dosten@jakzal@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp