Skip to content
Snippets Groups Projects
Commit c0e1b5fb authored by Christian Kuhn's avatar Christian Kuhn Committed by Benni Mack
Browse files

[TASK] Explicitly set ContentObjectRenderer in USER cObj

Handing around ContentObjectRenderer in the frontend
is tricky and intransparent. Especially class instances
created via ContentObjectRenderer->callUserFunction()
get an instance of it set through public property $cObj
in the consuming class. This is typically the case for
USER and USER_INT type frontend plugins.

The patch deprecates using this public property and
calls the method setContentObjectRenderer() instead.

This explicit method call is much easier to see,
break point and follow. The state handling of
ContentObjectRenderer is far from obvious, the
change helps debugging and refactoring this further.

Change-Id: Ib6ca11e7d6660dae0e82ad08ad1f9b39095e99da
Resolves: #94956
Releases: master
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70717


Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 60ee1e3c
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment