TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
RouteDispatcher Class Reference
Inheritance diagram for RouteDispatcher:
Dispatcher DispatcherInterface DispatcherInterface

Protected Member Functions

 getFormProtection ()
 
 isValidRequest ($request)
 
- Protected Member Functions inherited from Dispatcher
 getCallableFromTarget ($target)
 

Additional Inherited Members

- Public Member Functions inherited from 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 ( )
protected

Wrapper method for static form protection utility

Returns

Definition at line 62 of file RouteDispatcher.php.

References FormProtectionFactory\get().

Referenced by RouteDispatcher\isValidRequest().

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 RouteDispatcher\getFormProtection().