‪TYPO3CMS  9.5
TYPO3\CMS\Core\Http\Dispatcher Class Reference
Inheritance diagram for TYPO3\CMS\Core\Http\Dispatcher:
TYPO3\CMS\Core\Http\DispatcherInterface TYPO3\CMS\Backend\Http\RouteDispatcher

Public Member Functions

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

Protected Member Functions

callable getCallableFromTarget ($target)
 

Detailed Description

Dispatcher which resolves a target, which was given to the request to call a controller and method (but also a callable) where the request contains a "target" as attribute.

Used in eID Frontend Requests, see EidHandler

Definition at line 28 of file Dispatcher.php.

Member Function Documentation

◆ dispatch()

ResponseInterface TYPO3\CMS\Core\Http\Dispatcher::dispatch ( ServerRequestInterface  $request,
ResponseInterface  $response = null 
)

Main method that fetches the target from the request and calls the target directly

Parameters
ServerRequestInterface$request‪the current server request
ResponseInterface$response‪the prepared response
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0
Returns
‪ResponseInterface the filled response by the callable/controller/action
Exceptions

Reimplemented in TYPO3\CMS\Backend\Http\RouteDispatcher.

Definition at line 38 of file Dispatcher.php.

References TYPO3\CMS\Core\Http\Dispatcher\getCallableFromTarget().

◆ getCallableFromTarget()

callable TYPO3\CMS\Core\Http\Dispatcher::getCallableFromTarget (   $target)
protected

Creates a callable out of the given parameter, which can be a string, a callable / closure or an array which can be handed to call_user_func_array()

Parameters
array | string | callable$target‪the target which is being resolved.
Returns
‪callable
Exceptions

Definition at line 81 of file Dispatcher.php.

Referenced by TYPO3\CMS\Core\Http\Dispatcher\dispatch(), and TYPO3\CMS\Backend\Http\RouteDispatcher\dispatch().