Deprecation: #94957 - TypoScriptFrontendController->cObjectDepthCounter

See forge#94957

Description

The TypoScriptFrontendController contains a property to prevent endless recursion of content objects during frontend rendering. With TypoScript becoming less complex, this check becomes obsolete. To reduce dependencies between TypoScriptFrontendController and ContentObjectRenderer, the handling has been removed and property TypoScriptFrontendController->cObjectDepthCounter has been marked as deprecated.

Impact

If a TypoScript setup somehow manages to create a recursion, PHP will now stop with a fatal PHP nesting level error at some point, instead TYPO3 frontend rendering silently stopping.

Affected Installations

Instances using property TypoScriptFrontendController->cObjectDepthCounter are affected. That property has been handled mostly internally, this case is unlikely. The extension scanner will find usages with a weak match.

Migration

Drop usages of property TypoScriptFrontendController->cObjectDepthCounter, it is unused within TYPO3 v11.