‪TYPO3CMS  9.5
TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization:

Public Member Functions

ResponseInterface process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Detailed Description

Creates an instance of TypoScriptFrontendController and makes this globally available via $GLOBALS['TSFE'].

For now, GeneralUtility::_GP() is used in favor of $request->getQueryParams() due to hooks who could have $_GET/$_POST modified before.

this middleware might get removed in TYPO3 v10.0.

Definition at line 40 of file TypoScriptFrontendInitialization.php.

Member Function Documentation

◆ process()

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

Creates an instance of TSFE and sets it as a global variable, also pings the database in order ensure a valid database connection.

Parameters
ServerRequestInterface$request
RequestHandlerInterface$handler
Returns
‪ResponseInterface

Definition at line 52 of file TypoScriptFrontendInitialization.php.

References $GLOBALS.