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] Remove useless state from ServiceLocator#22029

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 (master only)
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

One less state to manage for the engine, and allows to deal with non-shared services.

Koc reacted with thumbs up emoji
Copy link
Member

@chalasrchalasr left a comment

Choose a reason for hiding this comment

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

👍

}

if (true ===$factory =$this->factories[$id]) {
thrownewServiceCircularReferenceException($id,array($id,$id));
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to cover this? The ServiceLocator is not passed to the factories so it is very unlikely to happen.

Copy link
MemberAuthor

@nicolas-grekasnicolas-grekasMar 16, 2017
edited
Loading

Choose a reason for hiding this comment

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

Why should we remove the safe guard? Symfony is used into the wild, it needs to handle properly any situations. I see no reason to trade a few lines vs a fatal error, however rare it is.

GuilhemN and Koc reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, just asking, fine for me as is then.

@xabbuh
Copy link
Member

👍

Status: Reviewed

}

publicfunctiontestGetDoesNotExecuteTheSameCallableTwice()
publicfunctiontestGetDoesNotMemoize()
Copy link
Contributor

Choose a reason for hiding this comment

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

Memoize => Memorize

Copy link
MemberAuthor

@nicolas-grekasnicolas-grekasMar 17, 2017
edited
Loading

Choose a reason for hiding this comment

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

jakzal reacted with thumbs up emoji
@jakzal
Copy link
Contributor

apart from the typo 👍

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commite0a5eec intosymfony:masterMar 17, 2017
fabpot added a commit that referenced this pull requestMar 17, 2017
…rekas)This PR was merged into the 3.3-dev branch.Discussion----------[DI] Remove useless state from ServiceLocator| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no (master only)| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -One less state to manage for the engine, and allows to deal with non-shared services.Commits-------e0a5eec [DI] Remove useless state from ServiceLocator
@nicolas-grekasnicolas-grekas deleted the di-non-shared-locator branchMarch 17, 2017 16:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@chalasrchalasrchalasr approved these changes

+2 more reviewers

@jakzaljakzaljakzal left review comments

@GuilhemNGuilhemNGuilhemN left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

7 participants

@nicolas-grekas@xabbuh@jakzal@fabpot@GuilhemN@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp