Deprecation: #89001 - Internal public TSFE properties

See forge#89001

Description

The following properties of the \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController class have been marked as deprecated:

  • cHash_array

  • cHash

  • domainStartPage

The properties are now built into proper arguments of the PHP objects \TYPO3\CMS\Core\Site\Entity\Site and \TYPO3\CMS\Core\Routing\PageArguments.

This follows the pattern of not accessing these properties through the global TSFE object directly anymore.

Impact

Accessing these properties directly will trigger a PHP E_USER_DEPRECATED error.

Affected Installations

TYPO3 installations with custom extensions or TypoScript directly accessing these properties.

Migration

Use the properties of Site and PageArguments instead:

  • \TYPO3\CMS\Core\Site\Entity\Site->getRootPageId() (e.g. via $request->getAttribute('site'))

  • \TYPO3\CMS\Core\Routing\PageArguments->getArguments()['cHash'] (e.g. via $request->getAttribute('routing'))

Please note that accessing these variables should be avoided via the TSFE context.