‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization:

Public Member Functions

 __construct (protected readonly TimeTracker $timeTracker)
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 
 typoScriptDeterminedListener (AfterTypoScriptDeterminedEvent $event)
 

Protected Member Functions

 isBackendUserCookieSet (ServerRequestInterface $request)
 
 isDebugModeEnabled ()
 

Private Attributes

bool $isDebugEnabledInTypoScriptConfig = false
 

Detailed Description

Initializes the time tracker (singleton) for the whole TYPO3 Frontend

Definition at line 33 of file TimeTrackerInitialization.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization::__construct ( protected readonly TimeTracker  $timeTracker)

Definition at line 37 of file TimeTrackerInitialization.php.

Member Function Documentation

◆ isBackendUserCookieSet()

TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization::isBackendUserCookieSet ( ServerRequestInterface  $request)
protected

◆ isDebugModeEnabled()

TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization::isDebugModeEnabled ( )
protected

◆ process()

TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 
)

◆ typoScriptDeterminedListener()

TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization::typoScriptDeterminedListener ( AfterTypoScriptDeterminedEvent  $event)

This middleware is run pretty early in the FE chain to initialize correctly. It however should only add the response header if debugging is enabled in TypoScript 'config', which is not available in the incoming Request, yet. It thus listens on the AfterTypoScriptDeterminedEvent to set $this->isDebugEnabledInTypoScriptConfig.

Definition at line 68 of file TimeTrackerInitialization.php.

References TYPO3\CMS\Frontend\Event\AfterTypoScriptDeterminedEvent\getFrontendTypoScript().

Member Data Documentation

◆ $isDebugEnabledInTypoScriptConfig

bool TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization::$isDebugEnabledInTypoScriptConfig = false
private

Definition at line 35 of file TimeTrackerInitialization.php.