Issue Bug Rejected

#98951Add constant for BE or FE context

Stefan Froemken 10/28/22, 21:49 updated 12/10/23, 08:15

Description

Hello core team,

thank you for new Event “BootCompletedEvent”. In earlier versions of TYPO3 I have used the Hook “TYPO3\CMS\Core\Database\TableConfigurationPostProcessingHookInterface”.

With TYPO3 version 12 you have removed the constant TYPO3_MODE. That’s no problem in general, but there is no replacement for such early EventListeners.

I can’t use:

ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()

as request object was not build until now.

Please add the information about FE or BE context to something like Environment class.

Stefan

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.