Skip to content
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

[HttpKernel] Deprecate AddAnnotatedClassesToCachePass and related code infrastructure #53801

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? yes
Issues Fix #52141
License MIT

These code paths are already no-ops in 7.1 since we don't support annotations anymore.

@@ -17,6 +17,8 @@
* Allow adding classes to the class cache.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @internal since Symfony 7.1, to be deprecated in 8.1; use Symfony\Component\DependencyInjection\Extension\Extension instead
Copy link
Member Author

@nicolas-grekas nicolas-grekas Feb 6, 2024

Choose a reason for hiding this comment

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

We cannot deprecate this class right away in 7.1 because we rely on it in FrameworkBundle and others.
Making it first internal then deprecate in 8.1 provides a smooth upgrade path.

Copy link
Member

Choose a reason for hiding this comment

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

Actually, if it is already a no-op, FrameworkBundle could stop registering it.

Copy link
Member Author

@nicolas-grekas nicolas-grekas Apr 5, 2024

Choose a reason for hiding this comment

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

if you mean AddAnnotatedClassesToCachePass, that's done in this PR

Copy link
Member

Choose a reason for hiding this comment

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

ah, I see. This is about the base class then.

Marking as @internal first which removes it from our BC policy before deprecating it only in 8.1 looks weird to me. If we don't deprecate it, we might keep it as non-internal.

Copy link
Member Author

Choose a reason for hiding this comment

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

it's @internal since, which means its deprecated to use, but we signals to us we won't remove it in 8.0 for BC reasons

Copy link
Member

Choose a reason for hiding this comment

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

but @internal since 7.1 would become @internal in 8.0, which can be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

can but doesn't have to, while deprecated means it should be removed
I'm looking for a smoother plan

Copy link
Member

Choose a reason for hiding this comment

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

fine by me

@javiereguiluz javiereguiluz added the ❄️ Feature Freeze Important Pull Requests to finish before the next Symfony "feature freeze" label Apr 2, 2024
Copy link
Member Author

@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.

PR rebased and ready 🙏

@chalasr
Copy link
Member

chalasr commented Apr 6, 2024

Quick rebase needed

@fabpot fabpot force-pushed the hk-deprec-annotated-classes branch from 926be8f to ef95928 Compare April 8, 2024 11:25
@fabpot
Copy link
Member

fabpot commented Apr 8, 2024

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 91dc097 into symfony:7.1 Apr 8, 2024
5 of 10 checks passed
@nicolas-grekas nicolas-grekas deleted the hk-deprec-annotated-classes branch April 19, 2024 15:42
@fabpot fabpot mentioned this pull request May 2, 2024
Korbeil added a commit to jolicode/automapper that referenced this pull request May 14, 2024
…#132)

`Symfony\Component\HttpKernel\DependencyInjection\Extension` is
deprecated since Symfony 7.1 by
symfony/symfony#53801
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecation HttpKernel Ready ❄️ Feature Freeze Important Pull Requests to finish before the next Symfony "feature freeze" Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecated everything related to *AnnotatedClassesToCompile*
7 participants