-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle][Routing] Deprecate annotations #51483
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
[FrameworkBundle][Routing] Deprecate annotations #51483
Conversation
9f4fd1d
to
8f9bdda
Compare
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
8f9bdda
to
e0426c9
Compare
e0426c9
to
da057c7
Compare
Rebased and conflicts fixed |
src/Symfony/Bundle/FrameworkBundle/Routing/AttributedRouteControllerLoader.php
Outdated
Show resolved
Hide resolved
c476880
to
0ea026e
Compare
src/Symfony/Bundle/FrameworkBundle/Resources/config/routing.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Routing/AttributeRouteControllerLoader.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Routing/Loader/AnnotationDirectoryLoader.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Routing/Loader/AnnotationDirectoryLoader.php
Outdated
Show resolved
Hide resolved
Instead of the current strategy, what about copy-pasting the existing Annotation classes code in the new Attribute classes, and then make existing Annotation classes extends those new Attribute classes. |
0ea026e
to
b559652
Compare
@fancyweb I think that the current way of doing is better for upmerges. It will be easier for potential fixes if the annotation classes remain the same. Otherwise, all fixes in |
9b778bf
to
94c5354
Compare
85d87ae
to
e51fe86
Compare
e51fe86
to
708b1b6
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.
The class_alias trick is the best!
Thank you @alexandre-daubois. |
I'll work on the cleanup 🙂 |
… (alexandre-daubois) This PR was merged into the 7.0 branch. Discussion ---------- [FrameworkBundle][Routing] Remove remaining deprecations | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT Follows #51483, I took `Annotation*Loader` from 7.0 to update `Attribute*Loader` here with latest changes. Commits ------- 77f6efc [FrameworkBundle][Routing] Remove remaining deprecations
… (alexandre-daubois) This PR was merged into the 7.0 branch. Discussion ---------- [FrameworkBundle][Routing] Remove remaining deprecations | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT Follows symfony/symfony#51483, I took `Annotation*Loader` from 7.0 to update `Attribute*Loader` here with latest changes. Commits ------- 77f6efc601 [FrameworkBundle][Routing] Remove remaining deprecations
routing.loader.annotation
service, use therouting.loader.attribute
service insteadrouting.loader.annotation.directory
service, use therouting.loader.attribute.directory
service insteadrouting.loader.annotation.file
service, use therouting.loader.attribute.file
service insteadAnnotationClassLoader
, useAttributeClassLoader
insteadAnnotationDirectoryLoader
, useAttributeDirectoryLoader
insteadAnnotationFileLoader
, useAttributeFileLoader
insteadAnnotatedRouteControllerLoader
, useAttributeRouteControllerLoader