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] Fix #16461 Container::set() replace aliases#17742

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
mnapoli wants to merge1 commit intosymfony:masterfrommnapoli:16461-set-alias

Conversation

@mnapoli
Copy link
Contributor

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

Container::set() now overrides any previously alias defined with the same name. Please see#16461 for the background.

Example:

  • givenevent_dispatcher is an alias todebug.event_dispatcher
  • when I run:$container->set('event_dispatcher', new FakeEventDispatcher)
  • before this patch: nothing happens
  • after this patch: theevent_dispatcher is now my fake event dispatcher

…existing aliases`Container::set()` now overrides any previously alias defined with the same name.
@xabbuh
Copy link
Member

👍

Status: Reviewed

@fabpot
Copy link
Member

Thank you@mnapoli.

@fabpotfabpot closed thisFeb 12, 2016
fabpot added a commit that referenced this pull requestFeb 12, 2016
…aliases (mnapoli)This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes#17742).Discussion----------[DependencyInjection]Fix#16461 Container::set() replace aliases| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#16461| License       | MIT| Doc PR        | -`Container::set()` now overrides any previously alias defined with the same name. Please see#16461 for the background.Example:- given `event_dispatcher` is an alias to `debug.event_dispatcher`- when I run: `$container->set('event_dispatcher', new FakeEventDispatcher)`- *before this patch*: nothing happens- *after this patch*: the `event_dispatcher` is now my fake event dispatcherCommits-------be85d16 [DependencyInjection]Fix#16461 Let Container::set() replace existing aliases
@mnapolimnapoli deleted the 16461-set-alias branchFebruary 12, 2016 08:58
This was referencedFeb 28, 2016
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.

4 participants

@mnapoli@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp