Feature: #97737 - New PSR-14 Events when Page + Rootline in Frontend is resolved

See Issue #97737

Description

Three new PSR-14 events have been added in the process when the main class TypoScriptFrontendController is resolving a page and its rootline, based on the incoming request.

  • BeforePageIsResolvedEvent
  • AfterPageWithRootLineIsResolvedEvent
  • AfterPageAndLanguageIsResolvedEvent

All events receive the incoming PSR-7 Request object, and the TypoScriptFrontendController object.

In addition, the latter two events allow event listeners to define a custom PSR-7 Response for custom permission layers, and interrupting further processing of a page.

These events serve as a replacement for the previously available hooks:

  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['determineId-PreProcessing']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['fetchPageId-PostProcessing']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_preProcess']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['determineId-PostProc']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_postProcess']

Impact

Please note that TypoScript hasn’t been resolved at the time of firing the events, as this is done in the next step of the Frontend request.