TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,36 @@
.. include:: /Includes.rst.txt
.. _deprecation-68074:
=========================================================
Deprecation: #68074 - Deprecate getPageRenderer() methods
=========================================================
See :issue:`68074`
Description
===========
The following public functions have been marked as deprecated as the instance they return is a singleton:
* `TYPO3\CMS\Backend\Controller\BackendController::getPageRenderer()`
* `TYPO3\CMS\Backend\Template\DocumentTemplate::getPageRenderer()`
* `TYPO3\CMS\Backend\Template\FrontendDocumentTemplate::getPageRenderer()`
* `TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::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
`\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class)` and work with that one.
.. index:: PHP-API