TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Mvc\Dispatcher Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Dispatcher:
TYPO3\CMS\Core\SingletonInterface Tx_Extbase_MVC_Dispatcher

Public Member Functions

 __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 = array()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Dispatches requests to the controller which was specified by the request and returns the response the controller generated.

Definition at line 20 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 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$requestThe request to dispatch
\TYPO3\CMS\Extbase\Mvc\ResponseInterface$responseThe 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 82 of file Dispatcher.php.

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

◆ 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 94 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 25 of file Dispatcher.php.

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

◆ $reflectionService

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

Definition at line 31 of file Dispatcher.php.

◆ $settings

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

Definition at line 42 of file Dispatcher.php.

◆ $signalSlotDispatcher

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

Definition at line 37 of file Dispatcher.php.