TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RequestHandler Class Reference
Inheritance diagram for RequestHandler:
RequestHandlerInterface

Public Member Functions

 __construct (Bootstrap $bootstrap)
 
 canHandleRequest (\Psr\Http\Message\ServerRequestInterface $request)
 
 getPriority ()
 
- Public Member Functions inherited from 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 frontend/Classes/Http/RequestHandler.php.

Constructor & Destructor Documentation

__construct ( Bootstrap  $bootstrap)

Constructor handing over the bootstrap and the original request

Parameters
Bootstrap$bootstrap

Definition at line 71 of file frontend/Classes/Http/RequestHandler.php.

References RequestHandler\$bootstrap.

Member Function Documentation

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 301 of file frontend/Classes/Http/RequestHandler.php.

getPriority ( )

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

Returns
int The priority of the request handler.

Implements RequestHandlerInterface.

Definition at line 312 of file frontend/Classes/Http/RequestHandler.php.

initializeController ( )
protected

Creates an instance of TSFE and sets it as a global variable

Returns
void

Definition at line 361 of file frontend/Classes/Http/RequestHandler.php.

References RequestHandler\$controller, $GLOBALS, GeneralUtility\_GP(), and GeneralUtility\makeInstance().

initializeOutputCompression ( )
protected

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

Definition at line 321 of file frontend/Classes/Http/RequestHandler.php.

References $GLOBALS, MathUtility\canBeInterpretedAsInteger(), and GeneralUtility\makeInstance().

initializeTimeTracker ( )
protected

Timetracking started depending if a Backend User is logged in

Returns
void

Definition at line 336 of file frontend/Classes/Http/RequestHandler.php.

References $GLOBALS, and RequestHandler\$timeTracker.

Member Data Documentation

$bootstrap
protected

Definition at line 46 of file frontend/Classes/Http/RequestHandler.php.

Referenced by RequestHandler\__construct().

$controller
protected
$request
protected

Definition at line 64 of file frontend/Classes/Http/RequestHandler.php.

$timeTracker
protected