73217[FEATURE] Introduce Attributes for Extbase Annotations
Commit message
Review
-
Code review CR +2 Done
- Georg Ringer +2
- Stefan Bürk +1
- Benni Mack +1
-
Verified V +2 Done
- Georg Ringer +2
- Benni Mack +1
- core-ci +1 CI
Issues 1
Files 17
- typo3/sysext/core/Documentation/Changelog/12.0/Feature-96688-AttributesForExtbaseAnnotations.rstnew+105 −0
- typo3/sysext/extbase/Classes/Annotation/ORM/Cascade.php+1 −0
- typo3/sysext/extbase/Classes/Annotation/ORM/Lazy.php+1 −0
- typo3/sysext/extbase/Classes/Annotation/ORM/Transient.php+1 −0
- typo3/sysext/extbase/Classes/Annotation/IgnoreValidation.php+1 −0
- typo3/sysext/extbase/Classes/Annotation/Validate.php+1 −0
- typo3/sysext/extbase/Classes/Reflection/ClassSchema.php+47 −2
- typo3/sysext/extbase/Tests/Unit/Reflection/ClassSchema/MethodParameterTest.php+61 −0
- typo3/sysext/extbase/Tests/Unit/Reflection/ClassSchema/PropertyTest.php+128 −0
- typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithAllTypesOfProperties.php+6 −0
- typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithLazyDoctrineAnnotation.php+3 −0
- typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyController.php+11 −0
- typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithIgnoreValidationDoctrineAttribute.phpnew+32 −0
- typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAttributeWithoutParam.phpnew+33 −0
- typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAttributeWithoutParamTypeHint.phpnew+33 −0
- typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyModel.php+20 −0
- typo3/sysext/extbase/Tests/Unit/Reflection/ClassSchemaTest.php+29 −0
Review log 911
-
Susi Moog uploaded patch set 1 01/30/22, 10:12
-
core-ci voted on patch set 1 V +1 01/30/22, 10:23 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/22708
-
Benni Mack voted on patch set 1 CR +1 02/05/22, 22:10
-
Stefan Bürk updated the commit message in patch set 2 02/06/22, 20:37
-
Stefan Bürk voted on patch set 2 CR +1 02/06/22, 20:37
-
core-ci voted on patch set 2 V +1 02/06/22, 20:46 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23111
-
Benni Mack voted on patch set 2 V +1 CR +1 02/07/22, 12:13
-
Christian Kuhn commented on patch set 2 02/07/22, 12:41
The general issue i have with this patch: it makes the complex class "ClassSchema" even more complex. I think we should at least think about which other parts could be deprecated with possibly further patches to somehow bring the class towards a manageable state mid-term. -
Susi Moog commented on patch set 2 02/07/22, 13:41
Maybe a bit of my thoughts that may help you form a decision - we could (in addition or instead of this patch): - deprecate the annotations (and get rid of all the annotation code in classSchema midTerm) - implement the attributes as separate classes with a separate attributeClassSchemaService (naming things) with their own logic - replace the validation from extbase with a different validation component completely (mid-term removing the maintenance burden on our side, as long as we choose a stable-enough reliable lib) This patch is the easiest solution as it is completely mirroring the annotation behaviour we have now and it could be combined with the deprecation part. The second solution above would introduce variability / differences in handling of attributes and annotations but would allow "better" constructors for the attributes. The third solution depends on research into validators, I think Alex has a linked patch where he looked into symfony/validator, however, I have no idea how far that was and whether that supports attributes or not. -
Georg Ringer voted on patch set 2 V +2 CR +2 02/08/22, 17:01
-
Georg Ringer merged patch set 3 02/08/22, 17:01