Actions
Bug #95853
closedDI in form finishers is not working
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2021-11-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
Problem¶
Since #94317 dependency injection for form finishers no longer works. This is due to the fact that finishers are now constructed by GeneralUtility::makeInstance
. Since the finisher services are not public, dependencies are not getting injected anymore.
Possible solution¶
Make form finishers public by default, e.g. by using the PublicServicePass
.
Steps to reproduce¶
- Generate new form or modify existing form
- Add `ConfirmationFinisher` with finisher option `contentElementUid`
- Try to send form in Frontend
- You should get an exception `TypoScript object path "lib.tx_form.contentElementRendering" does not exist`
Actions