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

Public Member Functions

 __construct (TimeTracker $timeTracker)
 
ResponseInterface process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

 convertCharsetRecursivelyToUtf8 (&$data, string $fromCharset)
 

Protected Attributes

TimeTracker $timeTracker
 

Detailed Description

Initialization of TypoScriptFrontendController

Do all necessary preparation steps for rendering

this middleware might get removed in TYPO3 v10.x.

Definition at line 34 of file PrepareTypoScriptFrontendRendering.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering::__construct ( TimeTracker  $timeTracker)

Member Function Documentation

◆ convertCharsetRecursivelyToUtf8()

TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering::convertCharsetRecursivelyToUtf8 ( $data,
string  $fromCharset 
)
protected

Small helper function to convert charsets for arrays to UTF-8

Parameters
mixed$data‪given by reference (string/array usually)
string$fromCharset‪convert FROM this charset

Definition at line 96 of file PrepareTypoScriptFrontendRendering.php.

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

◆ process()

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

Initialize TypoScriptFrontendController to the point right before rendering of the page is triggered

Parameters
ServerRequestInterface$request
RequestHandlerInterface$handler
Returns
‪ResponseInterface

Release TSFE locks. They have been acquired in the above call to controller->getFromCache(). TSFE locks are usually released by the RequestHandler 'final' middleware. However, when some middlewares returns early (e.g. Shortcut and MountPointRedirect, which both skip inner middlewares), or due to Exceptions, locks still need to be released explicitly.

Definition at line 52 of file PrepareTypoScriptFrontendRendering.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering\convertCharsetRecursivelyToUtf8().

Member Data Documentation

◆ $timeTracker

TimeTracker TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering::$timeTracker
protected