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

Public Member Functions

 __construct (TypoScriptFrontendController $controller=null, TimeTracker $timeTracker=null)
 
ResponseInterface process (ServerRequestInterface $request, PsrRequestHandlerInterface $handler)
 

Protected Member Functions

 convertCharsetRecursivelyToUtf8 (&$data, string $fromCharset)
 

Protected Attributes

TypoScriptFrontendController $controller
 
TimeTracker $timeTracker
 

Detailed Description

Initialization of TypoScriptFrontendController

Do all necessary preparation steps for rendering

this middleware might get removed in TYPO3 v10.0.

Definition at line 36 of file PrepareTypoScriptFrontendRendering.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering::__construct ( TypoScriptFrontendController  $controller = null,
TimeTracker  $timeTracker = null 
)

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 125 of file PrepareTypoScriptFrontendRendering.php.

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

◆ process()

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

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

Parameters
ServerRequestInterface$request
PsrRequestHandlerInterface$handler
Returns
‪ResponseInterface

Definition at line 59 of file PrepareTypoScriptFrontendRendering.php.

References $GLOBALS, TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering\convertCharsetRecursivelyToUtf8(), and TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

Member Data Documentation

◆ $controller

TypoScriptFrontendController TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering::$controller
protected

◆ $timeTracker

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