Breaking: #87567 - Global variable $TBE_TEMPLATE removed

See forge#87567

Description

The global variable $GLOBALS[TBE_TEMPLATE] used in TYPO3 Backend 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 trigger a PHP E_ERROR 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.