Dispatcher
class Dispatcher (View source)
A command dispatcher.
Properties
protected Dispatcher | $signalDispatcher | ||
protected ObjectManagerInterface | $objectManager |
Methods
This signal is emitted directly before the request is been dispatched to a controller.
This signal is emitted directly after the request has been dispatched to a controller and the controller returned control back to the dispatcher.
Finds and instantiates a controller that matches the current request.
Details
injectSignalDispatcher(Dispatcher $signalDispatcher)
No description
injectObjectManager(ObjectManagerInterface $objectManager)
No description
Response
dispatch(Request $request, Response $response)
Try processing the request until it is successfully marked "dispatched"
protected void
emitBeforeControllerInvocation(Request $request, Response $response, CommandControllerInterface $controller)
This signal is emitted directly before the request is been dispatched to a controller.
protected void
emitAfterControllerInvocation(Request $request, Response $response, CommandControllerInterface $controller)
This signal is emitted directly after the request has been dispatched to a controller and the controller returned control back to the dispatcher.
protected CommandControllerInterface
resolveController(Request $request)
Finds and instantiates a controller that matches the current request.
If no controller can be found, an instance of NotFoundControllerInterface is returned.