‪TYPO3CMS  10.4
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 Member Functions

 setBackendUserAspect (?BackendUserAuthentication $user)
 

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 45 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 63 of file TypoScriptFrontendInitialization.php.

References $GLOBALS, TYPO3\CMS\Frontend\Page\PageAccessFailureReasons\INVALID_PAGE_ARGUMENTS, TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW, and TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization\setBackendUserAspect().

◆ setBackendUserAspect()

TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization::setBackendUserAspect ( ?BackendUserAuthentication  $user)
protected

Register the backend user as aspect

Parameters
BackendUserAuthentication | null$user

Definition at line 115 of file TypoScriptFrontendInitialization.php.

Referenced by TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization\process().

Member Data Documentation

◆ $context

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