#82703Introduce doctrine/annotations to replace user defined annotations (mostly in Extbase)
Description
Extbase’s own annotation functionality is hardly maintained and has various critical issues (e.g. not allowing to import class names). Even Neos’ Flow has migrated to doctrine/annotations. This packages’ sole purpose is what we do with Extbase and the various ClassSchema / ReflectionService, but with people maintain and improving it.
As nobody stepped up in the past years to overcome issues and take ownership in this area, it is more than appropriate (taken the issues from above into account) to use the library and migrate our custom annotations to doctrine’s schema. This also allows to use other frameworks by re-using the same patterns and not mix our custom annotation handling with doctrine’s annotations.
In order to move forward, the first step is to integrate doctrine/annotations, and migrate our own annotations to the new structure, deprecating our own.
Once this is done, Extbase’s code will be less cluttered, and we can overcome various caching issues as doctrine’s caching does not work on a per-plugin basis as `extbase_object` does.
Reviews 2
Related issues 23
- Feature #82869Replace @inject with @Extbase\Inject
- Feature #83078Replace @lazy with @Extbase\ORM\Lazy
- Feature #83092Replace @transient with @Extbase\ORM\Transient
- Feature #83093Replace @cascade with @Extbase\ORM\Cascade
- Feature #83094Replace @ignorevalidation with @Extbase\IgnoreValidation
- Feature #83167Replace @validate with @Extbase\Validate
- Task #83255Deprecation notices from ClassSchema.php should contain offending class name
- Bug #83425Custom validators
- Task #83520Use @TYPO3\CMS\Extbase\Annotation\ORM\Lazy in core extensions
- Task #83521Use @TYPO3\CMS\Extbase\Annotation\ORM\Cascade in core extensions
- Task #83522Use @TYPO3\CMS\Extbase\Annotation\Inject in core extensions
- Task #85977Deprecate @cli annotation
- Task #85980Deprecate @internal annotation in extbase commands
- Task #85981Deprecate @flushesCaches annotation
- Task #86898Drop evaluation of @validate annotations
- Task #86899Drop evaluation of @inject annotations
- Task #86900Drop evaluation of @lazy annotations
- Task #86901Drop evaluation of @ignorevalidation annotations
- Task #86902Drop evaluation of @cli annotations
- Task #86903Drop evaluation of @internal annotations
- Task #86904Drop evaluation of @flushesCaches annotations
- Task #86905Drop evaluation of @transient annotations
- Task #86906Drop evaluation of @cascade annotations