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:
TYPO3\
CMS\ Backend\ Controller\ Backend Controller:: get Page Renderer () TYPO3\
CMS\ Backend\ Template\ Document Template:: get Page Renderer () TYPO3\
CMS\ Backend\ Template\ Frontend Document Template:: get Page Renderer () TYPO3\
CMS\ Frontend\ Controller\ Typo Script Frontend Controller:: get Page Renderer ()
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\
and work with that one.