‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler:
TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface

Public Member Functions

 __construct (Dispatcher $dispatcher)
 
ResponseInterface handleRequest (RequestInterface $request)
 
bool canHandleRequest (RequestInterface $request)
 
 getPriority ()
 

Protected Attributes

Dispatcher $dispatcher
 

Detailed Description

A request handler which can handle web requests.

only to be used within Extbase, not part of TYPO3 Core API.

Definition at line 28 of file FrontendRequestHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler::__construct ( Dispatcher  $dispatcher)

Member Function Documentation

◆ canHandleRequest()

bool TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler::canHandleRequest ( RequestInterface  $request)

This request handler can handle any web request.

Parameters
RequestInterface$request
Returns
‪bool If the request is a web request, TRUE otherwise FALSE

Implements TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface.

Definition at line 55 of file FrontendRequestHandler.php.

◆ getPriority()

TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler::getPriority ( )

Returns the priority - how eager the handler is to actually handle the request. An integer > 0 means "I want to handle this request" where "100" is default. "0" means "I am a fallback solution".

Returns
‪int The priority of the request handler

Implements TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface.

Definition at line 60 of file FrontendRequestHandler.php.

◆ handleRequest()

ResponseInterface TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler::handleRequest ( RequestInterface  $request)

Handles the web request. The response will automatically be sent to the client.

Parameters
RequestInterface$request
Returns
‪ResponseInterface
Exceptions
InfiniteLoopException

Implements TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface.

Definition at line 44 of file FrontendRequestHandler.php.

Member Data Documentation

◆ $dispatcher

Dispatcher TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler::$dispatcher
protected