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

[EventDispatcher] Deprecate ContainerAwareEventDispatcher#20937

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

These methods shouldn't be available to end users.

@stof
Copy link
Member

👍

@nicolas-grekasnicolas-grekas changed the title[EventDispatcher] Deprecate ContainerAwareEventDispatcher::getContainer() && ::lazyLoad()[EventDispatcher] Deprecate ContainerAwareEventDispatcherDec 16, 2016
@nicolas-grekas
Copy link
MemberAuthor

PR updated to deprecate the ContainerAwareEventDispatcher class.
To be rebased on top of#20953 before merging.

@xabbuh
Copy link
Member

The upgrade files for 3.3 and 4.0 need to be updated too.

@fabpot
Copy link
Member

Can be rebased now

@fabpot
Copy link
Member

You should probably updatesrc/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml as well to remove its usage.

@nicolas-grekas
Copy link
MemberAuthor

Rebased. About services.xml, that'd be a BC break because of the getContainer method that people may use...

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commitc4a6a8a intosymfony:masterJan 8, 2017
fabpot added a commit that referenced this pull requestJan 8, 2017
…her (nicolas-grekas)This PR was merged into the 3.3-dev branch.Discussion----------[EventDispatcher] Deprecate ContainerAwareEventDispatcher| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | no| Fixed tickets | -| License       | MIT| Doc PR        | -These methods shouldn't be available to end users.Commits-------c4a6a8a [EventDispatcher] Deprecate ContainerAwareEventDispatcher
@nicolas-grekasnicolas-grekas deleted the event-deprec-getcont branchJanuary 9, 2017 14:01
@chalasr
Copy link
Member

chalasr commentedFeb 14, 2017
edited
Loading

About services.xml, that'd be a BC break because of the getContainer method that people may use...

It's a bit annoying to get deprecations each time theevent_dispatcher service is used until 4.0.
is there any alternative we can provide? Most often there is no need to callgetContainer(), only dispatching events (3rd party bundles, functional tests in final apps..)

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

3.3

Development

Successfully merging this pull request may close these issues.

6 participants

@nicolas-grekas@stof@xabbuh@fabpot@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp