TimeTrackerInitialization implements MiddlewareInterface

FinalYes

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

Internal

Table of Contents

Interfaces

MiddlewareInterface

Methods

__construct()  : mixed
process()  : ResponseInterface
Starting time tracking (by setting up a singleton object)
typoScriptDeterminedListener()  : void
This middleware is run pretty early in the FE chain to initialize correctly.

Methods

process()

Starting time tracking (by setting up a singleton object)

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

typoScriptDeterminedListener()

This middleware is run pretty early in the FE chain to initialize correctly.

public typoScriptDeterminedListener(AfterTypoScriptDeterminedEvent $event) : void

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.

Parameters
$event : AfterTypoScriptDeterminedEvent
Attributes
#[AsEventListener]
'typo3-frontend/timetracker-init-middleware'

        
On this page

Search results