#106223custom dataprocessor can't use dependency injection
Description
I got this bug in TYPO3 11. But the same code-line occur in the current main-branch of TYPO3. https://github.com/TYPO3/typo3/blob/main/typo3/sysext/frontend/Classes/ContentObject/ContentDataProcessor.php. I wrote this ticket because of this and marked it for the current version.
I tried to build a custom dataprocessor. The dataprocessor included a dependency injection for an simple repository class. I got the exception while testing that stuff. See screenshot.
If I use the method “GeneralUtiliy::makeInstance()” in the dataprozessor, everything will work fine; teh missing dependency injection will only hinder the development of unittests.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.