TYPO3 CMS  TYPO3_7-6
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

 dispatch (ServerRequestInterface $request, ResponseInterface $response)
 

Protected Member Functions

 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 EidRequestHandler

Definition at line 27 of file Dispatcher.php.

Member Function Documentation

◆ dispatch()

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

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

Parameters
ServerRequestInterface$requestthe current server request
ResponseInterface$responsethe prepared response
Returns
ResponseInterface the filled response by the callable / controller/action
Exceptions

Implements TYPO3\CMS\Core\Http\DispatcherInterface.

Definition at line 37 of file Dispatcher.php.

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

◆ getCallableFromTarget()

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$targetthe target which is being resolved.
Returns
callable
Exceptions

Definition at line 52 of file Dispatcher.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Core\Http\Dispatcher\dispatch().