Deprecation: #88792 - forceTemplateParsing in TSFE and TemplateService
See forge#88792
Description
TYPO3\
andCMS\ Frontend\ Controller\ Typo Script Frontend Controller:: force Template Parsing TYPO3\
CMS\ Core\ Typo Script\ Template Service:: force Template Parsing
have been marked as deprecated and replaced by Context API.
Impact
Setting either
force
of
Typo
or
Template
will trigger a PHP
E_
error.
Affected Installations
All installations setting or reading
$TSFE->force
or
Template
.
Migration
Use the Context API:
GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('typoscript', 'forcedTemplateParsing');
$context->setAspect('typoscript', GeneralUtility::makeInstance(TypoScriptAspect::class, true));
Copied!