84404[FEATURE] Dipatch event in FormEngine AbstractNode
Commit message
Review
-
Code review CR 0
-
Verified V 0
Issues 1
Files 9
- typo3/sysext/backend/Classes/Form/Container/FileReferenceContainer.php+0 −2
- typo3/sysext/backend/Classes/Form/Container/FilesControlContainer.php+0 −2
- typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php+0 −2
- typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php+0 −2
- typo3/sysext/backend/Classes/Form/Element/LinkElement.php+0 −2
- typo3/sysext/backend/Classes/Form/Event/InitializeFormEngineResultArrayEvent.phpnew+159 −0
- typo3/sysext/backend/Classes/Form/AbstractNode.php1+29 −1
- typo3/sysext/core/Documentation/Changelog/13.2/Feature-103917-DispatchEventInFormEngineAbstractNodeInitialization.rstnew+84 −0
- typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php+4 −2
Review log 79
-
Sybille Peters uploaded patch set 1 05/26/24, 06:45
-
core-ci voted on patch set 1 V -1 05/26/24, 06:48 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/58252
-
Sybille Peters uploaded patch set 2
V -105/26/24, 06:50 -
core-ci voted on patch set 2 V -1 05/26/24, 06:59 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/58253
-
Christian Kuhn commented on patch set 2 05/26/24, 07:03
it kinda feels as if this general event is not a good solution to the issue you're trying to solve: too big hammer for a too small problem. it's also not how formEngine is supposed to work: single containers should be substituted if they don't fit. -1 from the abstract DI misconception only, but this patch does not feel good to me overall, too.AbstractNode.php:69Unresolvedabstracts must not pollute __construct() since that forces inheriting classes to know DI args of the abstract since they need to call parent and then must know the arguments, which creates API core should not introduce since that's close to impossible to maintain without being breaking. -
Sybille Peters uploaded patch set 3
V -105/26/24, 09:27 -
Sybille Peters uploaded patch set 4 05/26/24, 09:27
-
Sybille Peters commented on patch set 4 05/26/24, 09:29
Reply
So you have an alternative suggestion? I explained in the issue that is is not possible to use XCLASS for abstract classes. I will abandon patch. -
Sybille Peters abandoned the change 05/26/24, 09:30
See comments: too big hammer for a too small problem. it's also not how formEngine is supposed to work