TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Dispatcher Class Reference
Inheritance diagram for Dispatcher:
SingletonInterface

Public Member Functions

 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 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)
 
 resolveController (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request)
 

Protected Attributes

 $objectManager
 
 $reflectionService
 
 $signalSlotDispatcher
 
 $settings = []
 

Detailed Description

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

Definition at line 21 of file extbase/Classes/Mvc/Dispatcher.php.

Constructor & Destructor Documentation

__construct ( \TYPO3\CMS\Extbase\Object\ObjectManagerInterface  $objectManager)

Constructs the global dispatcher

Parameters
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface$objectManagerA reference to the object manager

Definition at line 64 of file extbase/Classes/Mvc/Dispatcher.php.

References Dispatcher\$objectManager.

Member Function Documentation

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

Parameters
\TYPO3\CMS\Extbase\Mvc\RequestInterface$requestThe request to dispatch
\TYPO3\CMS\Extbase\Mvc\ResponseInterface$responseThe response, to be modified by the controller
Exceptions
ExceptionInfiniteLoopException
Returns
void

Definition at line 77 of file extbase/Classes/Mvc/Dispatcher.php.

References Dispatcher\emitAfterRequestDispatchSignal(), and Dispatcher\resolveController().

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 99 of file extbase/Classes/Mvc/Dispatcher.php.

Referenced by Dispatcher\dispatch().

injectReflectionService ( \TYPO3\CMS\Extbase\Reflection\ReflectionService  $reflectionService)
Parameters
\TYPO3\CMS\Extbase\Reflection\ReflectionService$reflectionService

Definition at line 46 of file extbase/Classes/Mvc/Dispatcher.php.

References Dispatcher\$reflectionService.

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

Definition at line 54 of file extbase/Classes/Mvc/Dispatcher.php.

References Dispatcher\$signalSlotDispatcher.

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$requestThe request to dispatch
Exceptions
ExceptionInvalidControllerException
Returns

Definition at line 112 of file extbase/Classes/Mvc/Dispatcher.php.

Referenced by Dispatcher\dispatch().

Member Data Documentation

$objectManager
protected

Definition at line 26 of file extbase/Classes/Mvc/Dispatcher.php.

Referenced by Dispatcher\__construct().

$reflectionService
protected
$settings = []
protected

Definition at line 41 of file extbase/Classes/Mvc/Dispatcher.php.

$signalSlotDispatcher
protected