Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[FrameworkBundle][Routing] Deprecate annotations#51483
Uh oh!
There was an error while loading.Please reload this page.
Conversation
9f4fd1d
to8f9bdda
Comparesrc/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
8f9bdda
toe0426c9
Comparee0426c9
toda057c7
CompareRebased and conflicts fixed |
src/Symfony/Bundle/FrameworkBundle/Routing/AttributedRouteControllerLoader.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
c476880
to0ea026e
CompareUh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Routing/AttributeRouteControllerLoader.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Routing/Loader/AnnotationDirectoryLoader.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Routing/Loader/AnnotationDirectoryLoader.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
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
tob559652
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
to94c5354
CompareUh oh!
There was an error while loading.Please reload this page.
85d87ae
toe51fe86
Comparee51fe86
to708b1b6
CompareThere 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 | MITFollows#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 | MITFollowssymfony/symfony#51483, I took `Annotation*Loader` from 7.0 to update `Attribute*Loader` here with latest changes.Commits-------77f6efc601 [FrameworkBundle][Routing] Remove remaining deprecations
Uh oh!
There was an error while loading.Please reload this page.
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