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

[HttpKernel] deprecated ContainerAwareHttpKernel#13280

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

@fabpot
Copy link
Member

QA
Bug fix?no
New feature?no
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

In Symfony 3.0, therequest scope will be removed as therequest is not a service anymore. So, theContainerAwareHttpKernel should be deprecated now as it won't be needed anymore in 3.0. I've moved the only line of code that is still relevant inHttpKernel directly.

Note that I did not trigger a deprecation notice as the class is still used in Symfony 2.7.

@fabpotfabpotforce-pushed thecontainer-aware-httpkernel-deprecation branch from4f59c57 to0c50301CompareJanuary 6, 2015 11:18
@stof
Copy link
Member

stof commentedJan 6, 2015

👍

@fabpotfabpot merged commit0c50301 intosymfony:2.7Jan 6, 2015
fabpot added a commit that referenced this pull requestJan 6, 2015
This PR was merged into the 2.7 branch.Discussion----------[HttpKernel] deprecated ContainerAwareHttpKernel| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aIn Symfony 3.0, the `request` scope will be removed as the `request` is not a service anymore. So, the `ContainerAwareHttpKernel` should be deprecated now as it won't be needed anymore in 3.0. I've moved the only line of code that is still relevant in `HttpKernel` directly.Note that I did not trigger a deprecation notice as the class is still used in Symfony 2.7.Commits-------0c50301 [HttpKernel] deprecated ContainerAwareHttpKernel
@fabpotfabpot deleted the container-aware-httpkernel-deprecation branchJanuary 7, 2015 16:17
@xabbuh
Copy link
Member

Shouldn't we trigger deprecation warnings for people using the class in their own code and suppress them when used in Symfony itself?

@xabbuh
Copy link
Member

I created a PR for the deprecation trigger. Let's discuss it in#14665.

fabpot added a commit that referenced this pull requestMay 20, 2015
…e ContainerAwareHttpKernel (xabbuh)This PR was merged into the 2.7 branch.Discussion----------[HttpKernel] trigger a deprecation warning when using the ContainerAwareHttpKernel| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#13280| License       | MIT| Doc PR        |I agree that we should not trigger the deprecation warning when the `ContainerAwareHttpKernel` is used in the framework code. However, developers using this class in their own code should receive a warning to be able to prepare their applications for Symfony 3.0.Commits-------030731a [HttpKernel] trigger a deprecation warning when using the ContainerAwareHttpKernel
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@fabpot@stof@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp