PHP Класс Neos\Flow\Mvc\Dispatcher

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$settings array

Открытые методы

Метод Описание
dispatch ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response ) : void Dispatches a request to a controller
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void Inject the Object Manager through setter injection because property injection is not available during compile time.
injectSettings ( array $settings ) : void Injects the Flow settings

Защищенные методы

Метод Описание
emitAfterControllerInvocation ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response, Neos\Flow\Mvc\Controller\ControllerInterface $controller ) : void This signal is emitted directly after the request has been dispatched to a controller and the controller returned control back to the dispatcher.
emitBeforeControllerInvocation ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response, Neos\Flow\Mvc\Controller\ControllerInterface $controller ) : void This signal is emitted directly before the request is been dispatched to a controller.
initiateDispatchLoop ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response ) Try processing the request until it is successfully marked "dispatched"
resolveController ( Neos\Flow\Mvc\RequestInterface $request ) : Neos\Flow\Mvc\Controller\ControllerInterface Finds and instantiates a controller that matches the current request.

Описание методов

dispatch() публичный Метод

Dispatches a request to a controller
public dispatch ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response ) : void
$request Neos\Flow\Mvc\RequestInterface The request to dispatch
$response Neos\Flow\Mvc\ResponseInterface The response, to be modified by the controller
Результат void

emitAfterControllerInvocation() защищенный Метод

This signal is emitted directly after the request has been dispatched to a controller and the controller returned control back to the dispatcher.
protected emitAfterControllerInvocation ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response, Neos\Flow\Mvc\Controller\ControllerInterface $controller ) : void
$request Neos\Flow\Mvc\RequestInterface
$response Neos\Flow\Mvc\ResponseInterface
$controller Neos\Flow\Mvc\Controller\ControllerInterface
Результат void

emitBeforeControllerInvocation() защищенный Метод

This signal is emitted directly before the request is been dispatched to a controller.
protected emitBeforeControllerInvocation ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response, Neos\Flow\Mvc\Controller\ControllerInterface $controller ) : void
$request Neos\Flow\Mvc\RequestInterface
$response Neos\Flow\Mvc\ResponseInterface
$controller Neos\Flow\Mvc\Controller\ControllerInterface
Результат void

initiateDispatchLoop() защищенный Метод

Try processing the request until it is successfully marked "dispatched"
protected initiateDispatchLoop ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response )
$request Neos\Flow\Mvc\RequestInterface
$response Neos\Flow\Mvc\ResponseInterface

injectObjectManager() публичный Метод

Inject the Object Manager through setter injection because property injection is not available during compile time.
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
Результат void

injectSettings() публичный Метод

Injects the Flow settings
public injectSettings ( array $settings ) : void
$settings array The Flow settings
Результат void

resolveController() защищенный Метод

If no controller can be found, an instance of NotFoundControllerInterface is returned.
protected resolveController ( Neos\Flow\Mvc\RequestInterface $request ) : Neos\Flow\Mvc\Controller\ControllerInterface
$request Neos\Flow\Mvc\RequestInterface The request to dispatch
Результат Neos\Flow\Mvc\Controller\ControllerInterface

Описание свойств

$objectManager защищенное свойство

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

$settings защищенное свойство

protected array $settings
Результат array