Breaking: #107831 - Removed TypoScriptFrontendController
See forge#107831
Description
All remaining properties have been removed from
\TYPO3\, making the
class a readonly internal service used by the TYPO3 Core only.
The class will be fully removed in a later TYPO3 v14 release.
The following instance access patterns have been removed:
$GLOBALS['TSFE'] $request->getAttribute ('frontend. controller') $contentObject Renderer->get Typo Script Frontend Controller ()
All API methods that returned an instance of
\Typo -
usually named
get or similar - have been
removed as well.
Impact
Any remaining direct or indirect usage of
\Typo will
now result in a fatal PHP error.
Affected installations
Extensions that still relied on properties or methods of
\Typo are
affected.
The class was already marked internal and breaking in TYPO3 v13.
In particular, extensions that used
Abstract can now access
the relevant data from the PSR-7 request object, for example:
$pageInformation = $request->getAttribute('frontend.page.information');
Migration
See Breaking: #102621 - Most TSFE members marked internal or read-only for a detailed list of removed properties and their replacements.
As a specific example, old code that added additional header data like this:
$frontendController = $request->getAttribute('frontend.controller');
$frontendController->additionalHeaderData[] = $myAdditionalHeaderData;
should now use:
use TYPO3\CMS\Core\Page\PageRenderer;
use TYPO3\CMS\Core\Utility\GeneralUtility;
$pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
$pageRenderer->addHeaderData($myAdditionalHeaderData);
The same approach applies to
additional.