Review main Merged

70719[TASK] Deprecate TypoScriptFrontendController->cObjectDepthCounter

Christian Kuhn CR +2 V +2 Normal +74 −37 updated 08/23/21, 18:40

Commit message

TypoScriptFrontendController has a property to count nesting
of content objects. This is used in ContentObjectRenderer
to prevent recursion scenarios. If that kicks in, the rendering
is silently stopped.

This is ugly for various reasons: First, creating a recursion
via TypoScript is rather unlikely. Second, the property creates
a dependency between ContentObjectRenderer and
TypoScriptFrontendController. And most importantly: If a
TypoScript setup somehow manages to create a recursion, this
should create an error, not a silent suppression.

The patch drops handling of property cObjectDepthCounter. If
a recursion appears now, PHP will error out as soon as max
nesting level is reached. This obsoletes the property and its
handling.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 7