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

Public Member Functions

 __construct (Context $context)
 
ResponseInterface process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Attributes

Context $context
 

Detailed Description

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

In addition, determineId builds up the rootline based on a valid frontend-user authentication and Backend permissions if previewing.

this middleware might get removed in TYPO3 v11.0.

Definition at line 42 of file TypoScriptFrontendInitialization.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization::__construct ( Context  $context)

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.

Parameters
ServerRequestInterface$request
RequestHandlerInterface$handler
Returns
‪ResponseInterface

Definition at line 60 of file TypoScriptFrontendInitialization.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Page\PageAccessFailureReasons\INVALID_PAGE_ARGUMENTS.

Member Data Documentation

◆ $context

Context TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization::$context
protected