RequestHandler implements RequestHandlerInterface

General RequestHandler for the TYPO3 Backend. This is used for all Backend requests, including AJAX routes.

If a get/post parameter "route" is set, the Backend Routing is called and searches for a matching route inside the Router. The corresponding controller / action is called then which returns the response.

The following get/post parameters are evaluated here:

  • route
  • token

Table of Contents

Interfaces

RequestHandlerInterface

Properties

$dispatcher  : RouteDispatcher
$listenerProvider  : ListenerProvider
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
handle()  : ResponseInterface
Handles a backend request, after finishing running middlewares Dispatch the request to the appropriate controller through the Backend Dispatcher which resolves the routing
resetGlobalsToCurrentRequest()  : mixed
Sets the global GET and POST to the values, so if people access $_GET and $_POST Within hooks starting NOW (e.g. cObject), they get the "enriched" data from query params.

Properties

Methods

handle()

Handles a backend request, after finishing running middlewares Dispatch the request to the appropriate controller through the Backend Dispatcher which resolves the routing

public handle(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

resetGlobalsToCurrentRequest()

Sets the global GET and POST to the values, so if people access $_GET and $_POST Within hooks starting NOW (e.g. cObject), they get the "enriched" data from query params.

protected resetGlobalsToCurrentRequest(ServerRequestInterface $request) : mixed

This needs to be run after the request object has been enriched with modified GET/POST variables.

Parameters
$request : ServerRequestInterface
Internal

this safety net will be removed in TYPO3 v11.0.


        
On this page

Search results