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

Public Member Functions

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

Protected Attributes

 $bootstrap
 

Detailed Description

Lightweight alternative to the regular RequestHandler used when $_GET[eID] is set. In the future, logic from the EidUtility will be moved to this class.

Definition at line 31 of file EidRequestHandler.php.

Constructor & Destructor Documentation

__construct ( Bootstrap  $bootstrap)

Constructor handing over the bootstrap and the original request

Parameters
Bootstrap$bootstrap

Definition at line 44 of file EidRequestHandler.php.

References EidRequestHandler\$bootstrap.

Member Function Documentation

canHandleRequest ( ServerRequestInterface  $request)

This request handler can handle any frontend request.

Parameters
ServerRequestInterface$requestThe request to process
Returns
bool If the request is not an eID request, TRUE otherwise FALSE

Definition at line 91 of file EidRequestHandler.php.

References ServerRequestInterface\getParsedBody(), and ServerRequestInterface\getQueryParams().

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 102 of file EidRequestHandler.php.

handleRequest ( ServerRequestInterface  $request)

Handles a frontend request based on the _GP "eID" variable.

Parameters
ServerRequestInterface$request
Returns
NULL|

Definition at line 55 of file EidRequestHandler.php.

References $GLOBALS, GeneralUtility\callUserFunction(), and ServerRequestInterface\getCookieParams().

Member Data Documentation

$bootstrap
protected

Definition at line 37 of file EidRequestHandler.php.

Referenced by EidRequestHandler\__construct().