TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Http\RouteDispatcher Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Http\RouteDispatcher:
TYPO3\CMS\Core\Http\Dispatcher TYPO3\CMS\Core\Http\DispatcherInterface TYPO3\CMS\Core\Http\DispatcherInterface

Protected Member Functions

 getFormProtection ()
 
 isValidRequest ($request)
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Http\Dispatcher
 getCallableFromTarget ($target)
 

Additional Inherited Members

- Public Member Functions inherited from TYPO3\CMS\Core\Http\Dispatcher
 dispatch (ServerRequestInterface $request, ResponseInterface $response)
 

Detailed Description

Dispatcher which resolves a route to call a controller and method (but also a callable)

Definition at line 30 of file RouteDispatcher.php.

Member Function Documentation

◆ getFormProtection()

TYPO3\CMS\Backend\Http\RouteDispatcher::getFormProtection ( )
protected

Wrapper method for static form protection utility

Returns

Definition at line 62 of file RouteDispatcher.php.

References TYPO3\CMS\Core\FormProtection\FormProtectionFactory\get().

Referenced by TYPO3\CMS\Backend\Http\RouteDispatcher\isValidRequest().

◆ isValidRequest()

TYPO3\CMS\Backend\Http\RouteDispatcher::isValidRequest (   $request)
protected

Checks if the request token is valid. This is checked to see if the route is really created by the same instance. Should be called for all routes in the backend except for the ones that don't require a login.

Parameters
\Psr\Http\Message\ServerRequestInterface$request
Returns
bool
See also
where the token is generated.

Definition at line 76 of file RouteDispatcher.php.

References TYPO3\CMS\Backend\Http\RouteDispatcher\getFormProtection().