Dependency Injection fails in UserFunc breaking copy in the BE
We got a DoktypeFilter in the BE which is used for TCA type group to filter the selection of pages.
The class has a construct with another class with methods to handle the filter.
The dependency injection fails as it seems when copying e.g. content in the BE.
This means the UserFunc filter affects the copy process, while it does fully work at its task to filter.
The Exception (attached) is only thrown via ListModule.
In the PageModule the copy fails silent // the exception is thrown in the XHR but not displayed
Updated by Henrik Elsner 3 months ago
Either i got a config issue on my side or the same behavior can be watched when using the button bar hook to add buttons:
I added a class via this registration which calls the same stack resulting in the same error.
Updated by Oliver Bartsch 2 months ago
- Status changed from New to Needs Feedback
Hi, this basically means autowiring does not work as those are instantiated with
GeneralUtility::makeInstance(). Therefore, you have to declare those services public in your Services(.yaml|.php) configuration.
Could you please check if this solves the issue for you?