TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Mvc\Dispatcher Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Dispatcher:
TYPO3\CMS\Core\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 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$objectManagerA reference to the object manager

Definition at line 64 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$requestThe request to dispatch
\TYPO3\CMS\Extbase\Mvc\ResponseInterface$responseThe response, to be modified by the controller
Exceptions
Exception

Definition at line 77 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 99 of file Dispatcher.php.

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

◆ injectReflectionService()

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

Definition at line 46 of file Dispatcher.php.

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

◆ injectSignalSlotDispatcher()

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

Definition at line 54 of file Dispatcher.php.

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

◆ resolveController()

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

Definition at line 112 of file Dispatcher.php.

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

Member Data Documentation

◆ $objectManager

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

Definition at line 26 of file Dispatcher.php.

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

◆ $reflectionService

TYPO3\CMS\Extbase\Mvc\Dispatcher::$reflectionService
protected

◆ $settings

TYPO3\CMS\Extbase\Mvc\Dispatcher::$settings = []
protected

Definition at line 41 of file Dispatcher.php.

◆ $signalSlotDispatcher

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