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

Fixed incompatibility between ServiceSubscriberTrait and classes with protected $container property#33521

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
fabpot merged 1 commit intosymfony:4.3froma-menshchikov:issue_33355
Sep 11, 2019

Conversation

@a-menshchikov
Copy link
Contributor

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

{
/** @var ContainerInterface */
private$container;
private$serviceContainer;
Copy link
Member

@nicolas-grekasnicolas-grekasSep 10, 2019
edited
Loading

Choose a reason for hiding this comment

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

Hum, looking at the code again, the property is the only way to access the container. Which means this change would break anyone using it 100% guaranteed.
That's no-go from BC perspective.
Making the property protected might be the way to go.

@a-menshchikova-menshchikov changed the titleFixed incompatibility between ServiceSubscriberTrait and classes with public/protected $container propertyFixed incompatibility between ServiceSubscriberTrait and classes with protected $container propertySep 10, 2019
@fabpot
Copy link
Member

Thank you@a-menshchikov.

fabpot added a commit that referenced this pull requestSep 11, 2019
…lasses with protected $container property (a-menshchikov)This PR was squashed before being merged into the 4.3 branch (closes#33521).Discussion----------Fixed incompatibility between ServiceSubscriberTrait and classes with protected $container property| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#33355| License       | MIT| Doc PR        |Commits-------954dad4 Fixed incompatibility between ServiceSubscriberTrait and classes with protected $container property
@fabpotfabpot merged commit954dad4 intosymfony:4.3Sep 11, 2019
@a-menshchikova-menshchikov deleted the issue_33355 branchSeptember 15, 2019 07:20
@fabpotfabpot mentioned this pull requestOct 7, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@lyrixxlyrixxlyrixx approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

5 participants

@a-menshchikov@fabpot@nicolas-grekas@lyrixx@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp