-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] Deprecate ContainerAwareInterface
, ContainerAwareTrait
and ContainerAwareLoader
#50615
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
[DependencyInjection] Deprecate ContainerAwareInterface
, ContainerAwareTrait
and ContainerAwareLoader
#50615
Conversation
901e9c2
to
e7e734d
Compare
Thanks. We also need to scan the code base for all usages of both and adjust as needed. |
Should this be done in this PR? I thought this would be done in the 7.0 one. But I can have a look in this one if needed 🙂 |
That's always been our policy yes: ensure we don't trigger self-deprecation and that the code path that are going to be removed do trigger a notice before being removed. |
e7e734d
to
cdfc941
Compare
cdfc941
to
431da6f
Compare
ContainerAwareInterface
and ContainerAwareTrait
ContainerAwareInterface
, ContainerAwareTrait
and ContainerAwareLoader
4488e55
to
7178180
Compare
src/Symfony/Component/DependencyInjection/Tests/Fixtures/ContainerAwareDummy.php
Show resolved
Hide resolved
7178180
to
5da1f93
Compare
...omponent/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php
Show resolved
Hide resolved
src/Symfony/Bridge/Doctrine/Tests/DataFixtures/ContainerAwareLoaderTest.php
Outdated
Show resolved
Hide resolved
5da1f93
to
910005a
Compare
src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/ControllerServiceResolution/config.yml
Outdated
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/Tests/ContainerAwareTraitTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/Tests/ContainerAwareTraitTest.php
Outdated
Show resolved
Hide resolved
910005a
to
f4ef751
Compare
46c0dd7
to
d95e02e
Compare
d95e02e
to
218e17f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I pushed the fixed .github/expected-missing-return-types.diff for you)
What is the upgrade path for apps/bundles using this interface/trait? eg: the DoctrineBundle for container-aware migrations. |
@Kocal we've implemented |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
218e17f
to
6ec72bb
Compare
6ec72bb
to
1300895
Compare
…AwareTrait` and `ContainerAwareLoader`
1300895
to
fc3c572
Compare
Thank you @alexandre-daubois. |
…ntainerAwareTrait` (alexandre-daubois) This PR was merged into the 6.4 branch. Discussion ---------- [HttpKernel] Deprecate `ContainerAwareInterface` and `ContainerAwareTrait` Related to symfony/symfony#50615 Fix #18440 Commits ------- abd50b7 [HttpKernel] Deprecate `ContainerAwareInterface` and `ContainerAwareTrait`
As discussed in #50578 (comment)