Dispatcher

class \TYPO3\CMS\Extbase\Mvc\Dispatcher

Implements
SingletonInterface

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

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$eventDispatcher  : EventDispatcherInterface
$objectManager  : ObjectManagerInterface
$settings  : array

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

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

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