Project

General

Profile

Actions

Bug #98951

closed

Add constant for BE or FE context

Added by Stefan Froemken over 1 year ago. Updated 5 months ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
Start date:
2022-10-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions

Also available in: Atom PDF