Deprecation: #68074 - Deprecate getPageRenderer() methods 

See forge#68074

Description 

The following public functions have been marked as deprecated as the instance they return is a singleton:

  • TYPO3CMSBackendControllerBackendController::getPageRenderer()
  • TYPO3CMSBackendTemplateDocumentTemplate::getPageRenderer()
  • TYPO3CMSBackendTemplateFrontendDocumentTemplate::getPageRenderer()
  • TYPO3CMSFrontendControllerTypoScriptFrontendController::getPageRenderer()

Impact 

Using one of these functions will throw a deprecation message.

Migration 

As the PageRenderer implements a SingletonInterface you can get your own (shared) instance with TYPO3CMSCoreUtilityGeneralUtility::makeInstance(TYPO3CMSCorePagePageRenderer::class) and work with that one.