Review main Abandoned Breaking

48580[!!!][FEATURE] Frontend Simulation ViewHelper and Utility improvements

Claus Due CR 0 V 0 Hard +241 −78 updated 03/13/19, 08:18

Commit message

This change adds ``f:be.simulateFrontend`` which will create a
simulated frontend environment that will apply to every other
ViewHelper or dependency of ViewHelpers used inside the tag
content of the simulation ViewHelper. The new ViewHelper is safe
to use in templates that render in both frontend and backend; if
it detects an existing frontend (simulated or not) it will not
override the existing instance.

ViewHelpers that previously did internal frontend environment
simulation will now throw a ViewHelper Exception if used in a
non-FE context (CLI or BE both) without a simulated environment
as required to render the ViewHelper.

Also adds methods to FrontendSimulationUtility to create each
part of a simulated environment; allowing ViewHelpers and other
code to specifically simulate ContentObjectRenderer or
TypoScriptFrontendController for direct calling.

No current implementations should break from this - but as an
added bonus, side effects that previously could arise from for
example doubly simulating frontend contexts are now no longer
possible since no backups are kept (replaced by a more favorable,
safer method to detect when simulation must end, then ending it
completely by removing any simulated instance).

Review

  • Code review CR 0

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

  • Verified V 0

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

Issues 7

Files 6