Skip to content

[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

Merged

Conversation

alexandre-daubois
Copy link
Member

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? yes
Tickets -
License MIT
Doc PR -

As discussed in #50578 (comment)

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Jun 9, 2023

Thanks. We also need to scan the code base for all usages of both and adjust as needed.

@alexandre-daubois
Copy link
Member Author

alexandre-daubois commented Jun 9, 2023

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 🙂

@nicolas-grekas
Copy link
Member

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.

@alexandre-daubois alexandre-daubois force-pushed the deprecate-container-aware branch from e7e734d to cdfc941 Compare June 11, 2023 12:25
@alexandre-daubois alexandre-daubois force-pushed the deprecate-container-aware branch from cdfc941 to 431da6f Compare June 11, 2023 12:26
@alexandre-daubois alexandre-daubois changed the title [DependencyInjection] Deprecate ContainerAwareInterface and ContainerAwareTrait [DependencyInjection] Deprecate ContainerAwareInterface, ContainerAwareTrait and ContainerAwareLoader Jun 11, 2023
@alexandre-daubois alexandre-daubois force-pushed the deprecate-container-aware branch 6 times, most recently from 4488e55 to 7178180 Compare June 11, 2023 12:52
@alexandre-daubois alexandre-daubois force-pushed the deprecate-container-aware branch from 7178180 to 5da1f93 Compare June 11, 2023 12:54
@alexandre-daubois alexandre-daubois force-pushed the deprecate-container-aware branch from 910005a to f4ef751 Compare June 12, 2023 12:48
@alexandre-daubois alexandre-daubois force-pushed the deprecate-container-aware branch 8 times, most recently from 46c0dd7 to d95e02e Compare June 12, 2023 16:11
@nicolas-grekas nicolas-grekas force-pushed the deprecate-container-aware branch from d95e02e to 218e17f Compare June 12, 2023 16:15
Copy link
Member

@nicolas-grekas nicolas-grekas left a 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)

@Kocal
Copy link
Member

Kocal commented Jun 12, 2023

What is the upgrade path for apps/bundles using this interface/trait? eg: the DoctrineBundle for container-aware migrations.

@ro0NL
Copy link
Contributor

ro0NL commented Jun 13, 2023

@Kocal we've implemented Doctrine\Migrations\Version\MigrationFactory

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@alexandre-daubois alexandre-daubois force-pushed the deprecate-container-aware branch from 218e17f to 6ec72bb Compare June 14, 2023 08:02
@alexandre-daubois alexandre-daubois force-pushed the deprecate-container-aware branch from 6ec72bb to 1300895 Compare June 20, 2023 15:02
@alexandre-daubois alexandre-daubois force-pushed the deprecate-container-aware branch from 1300895 to fc3c572 Compare June 20, 2023 15:03
@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit 4530e95 into symfony:6.4 Jun 20, 2023
@alexandre-daubois alexandre-daubois deleted the deprecate-container-aware branch June 21, 2023 07:16
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Jun 21, 2023
…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`
This was referenced Oct 21, 2023
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.

7 participants