Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 to8f9bddaComparesrc/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
8f9bdda toe0426c9Comparee0426c9 toda057c7Comparealexandre-daubois commentedOct 2, 2023
Rebased 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 to0ea026eCompareUh 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.
fancyweb commentedOct 13, 2023
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 tob559652Comparealexandre-daubois commentedOct 15, 2023
@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 to94c5354CompareUh oh!
There was an error while loading.Please reload this page.
85d87ae toe51fe86Comparee51fe86 to708b1b6Compare
nicolas-grekas left a comment
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!
nicolas-grekas commentedOct 17, 2023
Thank you@alexandre-daubois. |
alexandre-daubois commentedOct 17, 2023
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.annotationservice, use therouting.loader.attributeservice insteadrouting.loader.annotation.directoryservice, use therouting.loader.attribute.directoryservice insteadrouting.loader.annotation.fileservice, use therouting.loader.attribute.fileservice insteadAnnotationClassLoader, useAttributeClassLoaderinsteadAnnotationDirectoryLoader, useAttributeDirectoryLoaderinsteadAnnotationFileLoader, useAttributeFileLoaderinsteadAnnotatedRouteControllerLoader, useAttributeRouteControllerLoader