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
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
$dispatcher
protected
RouteDispatcher
$dispatcher
$listenerProvider
protected
ListenerProvider
$listenerProvider
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(RouteDispatcher $dispatcher, UriBuilder $uriBuilder, ListenerProvider $listenerProvider) : mixed
Parameters
- $dispatcher : RouteDispatcher
- $uriBuilder : UriBuilder
- $listenerProvider : ListenerProvider
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
ResponseInterfaceresetGlobalsToCurrentRequest()
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
this safety net will be removed in TYPO3 v11.0.