Breaking: #87567 - Global variable $TBE_TEMPLATE removed

See Issue #87567

Description

The global variable used in TYPO3 Backend $GLOBALS[TBE_TEMPLATE] which was available for legacy reasons for old backend modules as an instance of DocumentTemplate a.k.a. alt_doc has been removed.

The according PSR-15 middleware, which was marked as internal, is also removed.

Impact

Calling any method or property on $GLOBALS[TBE_TEMPLATE] will result in a fatal error.

Affected Installations

TYPO3 installations with older extensions using the global variable.

Migration

Instantiate the DocumentTemplate class directly in the controller of the module, or migrate to ModuleTemplate which is available since TYPO3 v7.