-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Deprecate annotations support #2772
Deprecate annotations support #2772
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2772 +/- ##
==========================================
+ Coverage 78.75% 78.85% +0.10%
==========================================
Files 163 167 +4
Lines 8593 8640 +47
==========================================
+ Hits 6767 6813 +46
- Misses 1826 1827 +1 ☔ View full report in Codecov by Sentry. |
I don't know if we can invert the inheritance and make the Annotation classes inherit from the Attribute ones |
We'd have to flip it for the Conceivably it's possible, and the mapping drivers within this package are a lot more of an internal implementation than in the object managers themselves given the way |
6489401
to
8a86f5e
Compare
Reversing the inheritance chain actually worked out a lot more smoothly than I expected it to. The only possible hangup from an end-user perspective is if someone implemented a custom extension (as in fully added their own listener extending from |
nice 🎉
I'm fine with this, I don't think a lot of people would have both annotations and attributes drivers in their custom extensions. |
8a86f5e
to
36c9dda
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.
LGTM
b4920bf
to
eff4513
Compare
eff4513
to
c315142
Compare
Now that the hard dependency is broken, the next major task to coincide with the
doctrine/annotations
library being deprecated would be deprecating annotations support in this package. WIP for now because this is going to be quite a big deprecation and architectural task since the attribute drivers are all subclasses of their annotation counterparts so some thought will be needed into how to address that (as folks in the Symfony ecosystem will eventually come here with reports about it, even with the drivers all being flagged internal).Other things to think about along the way include:
setAnnotationReader()
), how in-depth does this deprecation need to go here?