‪TYPO3CMS  9.5
TYPO3\CMS\Extbase\Mvc\Dispatcher Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Dispatcher:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 injectSignalSlotDispatcher (\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher)
 
 __construct (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 dispatch (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request, \TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 

Protected Member Functions

 emitAfterRequestDispatchSignal (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request, \TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
TYPO3 CMS Extbase Mvc Controller ControllerInterface resolveController (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request)
 

Protected Attributes

TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
 
array $settings = array( )
 

Detailed Description

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.

Definition at line 22 of file Dispatcher.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Mvc\Dispatcher::__construct ( \TYPO3\CMS\Extbase\Object\ObjectManagerInterface  $objectManager)

Constructs the global dispatcher

Parameters
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface$objectManager‪A reference to the object manager

Definition at line 49 of file Dispatcher.php.

References TYPO3\CMS\Extbase\Mvc\Dispatcher\$objectManager.

Member Function Documentation

◆ dispatch()

TYPO3\CMS\Extbase\Mvc\Dispatcher::dispatch ( \TYPO3\CMS\Extbase\Mvc\RequestInterface  $request,
\TYPO3\CMS\Extbase\Mvc\ResponseInterface  $response 
)

Dispatches a request to a controller and initializes the security framework.

Parameters
\TYPO3\CMS\Extbase\Mvc\RequestInterface$request‪The request to dispatch
\TYPO3\CMS\Extbase\Mvc\ResponseInterface$response‪The response, to be modified by the controller
Exceptions
Exception

Definition at line 61 of file Dispatcher.php.

References TYPO3\CMS\Extbase\Mvc\Dispatcher\emitAfterRequestDispatchSignal(), and TYPO3\CMS\Extbase\Mvc\Dispatcher\resolveController().

◆ emitAfterRequestDispatchSignal()

TYPO3\CMS\Extbase\Mvc\Dispatcher::emitAfterRequestDispatchSignal ( \TYPO3\CMS\Extbase\Mvc\RequestInterface  $request,
\TYPO3\CMS\Extbase\Mvc\ResponseInterface  $response 
)
protected

Emits a signal after a request was dispatched

Parameters
RequestInterface$request
ResponseInterface$response

Definition at line 83 of file Dispatcher.php.

Referenced by TYPO3\CMS\Extbase\Mvc\Dispatcher\dispatch().

◆ injectSignalSlotDispatcher()

TYPO3\CMS\Extbase\Mvc\Dispatcher::injectSignalSlotDispatcher ( \TYPO3\CMS\Extbase\SignalSlot\Dispatcher  $signalSlotDispatcher)
Parameters
\TYPO3\CMS\Extbase\SignalSlot\Dispatcher$signalSlotDispatcher

Definition at line 39 of file Dispatcher.php.

References TYPO3\CMS\Extbase\Mvc\Dispatcher\$signalSlotDispatcher.

◆ resolveController()

TYPO3 CMS Extbase Mvc Controller ControllerInterface TYPO3\CMS\Extbase\Mvc\Dispatcher::resolveController ( \TYPO3\CMS\Extbase\Mvc\RequestInterface  $request)
protected

Finds and instanciates a controller that matches the current request. If no controller can be found, an instance of NotFoundControllerInterface is returned.

Parameters
\TYPO3\CMS\Extbase\Mvc\RequestInterface$request‪The request to dispatch
Exceptions
Exception

Definition at line 96 of file Dispatcher.php.

Referenced by TYPO3\CMS\Extbase\Mvc\Dispatcher\dispatch().

Member Data Documentation

◆ $objectManager

TYPO3 CMS Extbase Object ObjectManagerInterface TYPO3\CMS\Extbase\Mvc\Dispatcher::$objectManager
protected

A reference to the object manager

Definition at line 26 of file Dispatcher.php.

Referenced by TYPO3\CMS\Extbase\Mvc\Dispatcher\__construct().

◆ $settings

array TYPO3\CMS\Extbase\Mvc\Dispatcher::$settings = array( )
protected

Definition at line 34 of file Dispatcher.php.

◆ $signalSlotDispatcher

TYPO3 CMS Extbase SignalSlot Dispatcher TYPO3\CMS\Extbase\Mvc\Dispatcher::$signalSlotDispatcher
protected