TYPO3
7.6
|
Public Member Functions | |
dispatch (ServerRequestInterface $request, ResponseInterface $response) | |
Protected Member Functions | |
getCallableFromTarget ($target) | |
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 core/Classes/Http/Dispatcher.php.
dispatch | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Main method that fetches the target from the request and calls the target directly
ServerRequestInterface | $request | the current server request |
ResponseInterface | $response | the prepared response |
\InvalidArgumentException | if the defined target is invalid |
Implements DispatcherInterface.
Definition at line 37 of file core/Classes/Http/Dispatcher.php.
References ServerRequestInterface\getAttribute(), and Dispatcher\getCallableFromTarget().
|
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()
array | string | callable | $target | the target which is being resolved. |
\InvalidArgumentException |
Definition at line 52 of file core/Classes/Http/Dispatcher.php.
References GeneralUtility\makeInstance().
Referenced by Dispatcher\dispatch().