Skip to content

[DI] Deprecate ContainerAware in favor of ContainerAwareTrait #16424

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2015

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR -

To be merged before #16411 (that then should be rebased) if we agree that this is the right approach (which I believe personally).
The deprecation notice will be triggered by the existing mechanism in the DebugClassLoader (it can't be added inline because that would make symfony itself trigger it).
PHP 5.3 users migrating to 3.0 must already move to 2.8+5.5 beforehand so this is really on the CUP (Continuous Upgrade Path).

@Taluu
Copy link
Contributor

Taluu commented Nov 4, 2015

👍 AFAIC.

@fabpot
Copy link
Member

fabpot commented Nov 4, 2015

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 807ebac into symfony:2.8 Nov 4, 2015
fabpot added a commit that referenced this pull request Nov 4, 2015
…reTrait (nicolas-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[DI] Deprecate ContainerAware in favor of ContainerAwareTrait

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | -

To be merged before #16411 (that then should be rebased) if we agree that this is the right approach (which I believe personally).
The deprecation notice will be triggered by the existing mechanism in the DebugClassLoader (it can't be added inline because that would make symfony itself trigger it).
PHP 5.3 users migrating to 3.0 must already move to 2.8+5.5 beforehand so this is really on the CUP (Continuous Upgrade Path).

Commits
-------

807ebac [DI] Deprecate ContainerAware in favor of ContainerAwareTrait
@nicolas-grekas nicolas-grekas deleted the deprecate-ContainerAware branch November 4, 2015 08:03
@fabpot fabpot mentioned this pull request Nov 16, 2015
denya-vs added a commit to denya-vs/FpOpenIdBundle that referenced this pull request May 20, 2016
Deprecate ContainerAware in favor of ContainerAwareTrait
symfony/symfony#16424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants