Skip to content

Conversation

@f3l1x
Copy link
Member

@f3l1x f3l1x commented Dec 28, 2025

  • Remove doctrine/annotations and koriym/attributes dependencies from composer.json
  • Create NativeAttributeReader to replace Doctrine's Reader interface
  • Update DualReaderFactory to use NativeAttributeReader
  • Remove @annotation, @target, @NamedArgumentConstructor docblock annotations
  • Replace AnnotationException with InvalidArgumentException
  • Update SymfonyValidator to use only attribute-based validation
  • Convert all test fixtures from docblock annotations to PHP 8 attributes
  • Update phpstan.neon to remove doctrine-related ignores
  • Update error messages to reference #[Attribute] syntax instead of @annotation

This is a breaking change - docblock annotations are no longer supported.

@f3l1x f3l1x force-pushed the claude/remove-doctrine-annotations-OcABF branch from 960d37b to b0d304d Compare December 28, 2025 15:51
@Roman3349
Copy link
Member

@f3l1x I think that this classes can be deleted (or marked as deprecated) because they exists mainly for annotations:

  • Apitte\Core\Annotation\Controller\Negotiations
  • Apitte\Core\Annotation\Controller\RequestParameters
  • Apitte\Core\Annotation\Controller\Responses

@f3l1x f3l1x force-pushed the claude/remove-doctrine-annotations-OcABF branch from b0d304d to 0835f31 Compare December 29, 2025 17:53
- Remove doctrine/annotations and koriym/attributes dependencies
- Create AttributeLoader to replace DoctrineAnnotationLoader
- Inline attribute reading directly into AttributeLoader (no separate reader class)
- Remove LoaderFactory directory (DualReaderFactory, NativeAttributeReader)
- Delete obsolete wrapper classes: Negotiations, RequestParameters, Responses
- Remove @annotation, @target, @NamedArgumentConstructor docblock annotations
- Replace AnnotationException with InvalidArgumentException
- Update SymfonyValidator to use only attribute-based validation
- Convert all test fixtures from docblock annotations to PHP 8 attributes
- Rename test files to reflect new naming
- Require nette/utils ^4.1.0

This is a breaking change - docblock annotations are no longer supported.
@f3l1x f3l1x force-pushed the claude/remove-doctrine-annotations-OcABF branch from 0835f31 to 17fb3a9 Compare December 29, 2025 17:56
@f3l1x
Copy link
Member Author

f3l1x commented Dec 29, 2025

@f3l1x I think that this classes can be deleted (or marked as deprecated) because they exists mainly for annotations:

  • Apitte\Core\Annotation\Controller\Negotiations
  • Apitte\Core\Annotation\Controller\RequestParameters
  • Apitte\Core\Annotation\Controller\Responses

Good point, done.

@f3l1x f3l1x merged commit e4d0f06 into master Dec 29, 2025
6 checks passed
@f3l1x f3l1x deleted the claude/remove-doctrine-annotations-OcABF branch December 29, 2025 17:58
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.

4 participants