Dispatcher implements SingletonInterface
Dispatches requests to the controller which was specified by the request and returns the response the controller generated.
only to be used within Extbase, not part of TYPO3 Core API.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $eventDispatcher : EventDispatcherInterface
- $objectManager : ObjectManagerInterface
- $settings : array<string|int, mixed>
Methods
- __construct() : mixed
- Constructs the global dispatcher
- buildRequestFromCurrentRequestAndForwardResponse() : Request
- dispatch() : ResponseInterface
- Dispatches a request to a controller and initializes the security framework.
- resolveController() : ControllerInterface
- Finds and instantiates a controller that matches the current request.
Properties
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$objectManager
since v11, will be removed in v12
protected
ObjectManagerInterface
$objectManager
A reference to the object manager
$settings
protected
array<string|int, mixed>
$settings
= []
Methods
__construct()
Constructs the global dispatcher
public
__construct(ObjectManagerInterface $objectManager, ContainerInterface $container, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $objectManager : ObjectManagerInterface
-
A reference to the object manager
- $container : ContainerInterface
- $eventDispatcher : EventDispatcherInterface
buildRequestFromCurrentRequestAndForwardResponse()
public
static buildRequestFromCurrentRequestAndForwardResponse(Request $currentRequest, ForwardResponse $forwardResponse) : Request
Parameters
- $currentRequest : Request
- $forwardResponse : ForwardResponse
only to be used within Extbase, not part of TYPO3 Core API.
Tags
Return values
Requestdispatch()
Dispatches a request to a controller and initializes the security framework.
public
dispatch(RequestInterface $request) : ResponseInterface
Parameters
- $request : RequestInterface
-
The request to dispatch
Tags
Return values
ResponseInterfaceresolveController()
Finds and instantiates a controller that matches the current request.
protected
resolveController(RequestInterface $request) : ControllerInterface
If no controller can be found, an instance of NotFoundControllerInterface is returned.
Parameters
- $request : RequestInterface
-
The request to dispatch