Skip to content

Replace deprecated annotations with attributes#59

Merged
f3l1x merged 3 commits intomasterfrom
claude/migrate-annotations-to-attributes-01PEMgZNBdMF9fMryj2PB2Hu
Dec 5, 2025
Merged

Replace deprecated annotations with attributes#59
f3l1x merged 3 commits intomasterfrom
claude/migrate-annotations-to-attributes-01PEMgZNBdMF9fMryj2PB2Hu

Conversation

@f3l1x
Copy link
Copy Markdown
Member

@f3l1x f3l1x commented Dec 4, 2025

  • Replace @annotation docblock with #[Attribute] on ApiRoute class
  • Update ApiRouterExtension to use ReflectionAttribute instead of Doctrine AnnotationReader
  • Remove doctrine/annotations and symfony/cache dependencies
  • Update ApiRoute constructor to accept named parameters for attributes
  • Update test fixtures and tests to use attribute syntax

- Replace @annotation docblock with #[Attribute] on ApiRoute class
- Update ApiRouterExtension to use ReflectionAttribute instead of
  Doctrine AnnotationReader
- Remove doctrine/annotations and symfony/cache dependencies
- Update ApiRoute constructor to accept named parameters for attributes
- Update test fixtures and tests to use attribute syntax
- Replace annotation examples with attribute syntax
- Update router examples to use named parameters
- Remove reference to doctrine/annotations
- Add path: named parameter to all ApiRoute usages
- Add presenter: named parameter to all ApiRoute usages
- Update documentation examples to use fully named parameters
@f3l1x f3l1x merged commit fa0f0e1 into master Dec 5, 2025
1 check passed
@f3l1x f3l1x deleted the claude/migrate-annotations-to-attributes-01PEMgZNBdMF9fMryj2PB2Hu branch December 5, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants