TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Frontend\Http\RequestHandler Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Http\RequestHandler:
TYPO3\CMS\Core\Http\RequestHandlerInterface

Public Member Functions

 __construct (Bootstrap $bootstrap)
 
 canHandleRequest (\Psr\Http\Message\ServerRequestInterface $request)
 
 getPriority ()
 
- Public Member Functions inherited from TYPO3\CMS\Core\Http\RequestHandlerInterface
 handleRequest (\Psr\Http\Message\ServerRequestInterface $request)
 
 canHandleRequest (\Psr\Http\Message\ServerRequestInterface $request)
 

Protected Member Functions

 initializeOutputCompression ()
 
 initializeTimeTracker ()
 
 initializeController ()
 

Protected Attributes

 $bootstrap
 
 $timeTracker
 
 $controller
 
 $request
 

Detailed Description

This is the main entry point of the TypoScript driven standard front-end

Basically put, this is the script which all requests for TYPO3 delivered pages goes to in the frontend (the website). The script instantiates a $TSFE object, includes libraries and does a little logic here and there in order to instantiate the right classes to create the webpage. Previously, this was called index_ts.php and also included the logic for the lightweight "eID" concept, which is now handled in a separate request handler (EidRequestHandler).

Definition at line 40 of file RequestHandler.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ canHandleRequest()

TYPO3\CMS\Frontend\Http\RequestHandler::canHandleRequest ( \Psr\Http\Message\ServerRequestInterface  $request)

This request handler can handle any frontend request.

Parameters
\Psr\Http\Message\ServerRequestInterface$request
Returns
bool If the request is not an eID request, TRUE otherwise FALSE

Definition at line 302 of file RequestHandler.php.

◆ getPriority()

TYPO3\CMS\Frontend\Http\RequestHandler::getPriority ( )

Returns the priority - how eager the handler is to actually handle the request.

Returns
int The priority of the request handler.

Implements TYPO3\CMS\Core\Http\RequestHandlerInterface.

Definition at line 313 of file RequestHandler.php.

◆ initializeController()

TYPO3\CMS\Frontend\Http\RequestHandler::initializeController ( )
protected

◆ initializeOutputCompression()

TYPO3\CMS\Frontend\Http\RequestHandler::initializeOutputCompression ( )
protected

Initializes output compression when enabled, could be split up and put into Bootstrap at a later point

Definition at line 322 of file RequestHandler.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Frontend\Http\RequestHandler\__construct().

◆ initializeTimeTracker()

TYPO3\CMS\Frontend\Http\RequestHandler::initializeTimeTracker ( )
protected

Timetracking started depending if a Backend User is logged in

Returns
void

Definition at line 337 of file RequestHandler.php.

References $GLOBALS, and TYPO3\CMS\Frontend\Http\RequestHandler\$timeTracker.

Referenced by TYPO3\CMS\Frontend\Http\RequestHandler\__construct().

Member Data Documentation

◆ $bootstrap

TYPO3\CMS\Frontend\Http\RequestHandler::$bootstrap
protected

◆ $controller

TYPO3\CMS\Frontend\Http\RequestHandler::$controller
protected

◆ $request

TYPO3\CMS\Frontend\Http\RequestHandler::$request
protected

◆ $timeTracker

TYPO3\CMS\Frontend\Http\RequestHandler::$timeTracker
protected