Dispatcher implements SingletonInterface

Dispatches requests to the controller which was specified by the request and returns the response the controller generated.

Internal

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

$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
Internal

only to be used within Extbase, not part of TYPO3 Core API.

Tags
todo:

make this a private method again as soon as the tests, that fake the dispatching of requests, are refactored.

Return values
Request

        
On this page

Search results