Issue Bug Closed

#106223custom dataprocessor can't use dependency injection

Dieter Dr. Porth 02/21/25, 07:30 updated 02/21/25, 11:33

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.