This event is triggered by the following classes:
- Zend\Mvc\Application: it's triggered in the
bootstrapmethod.
The following classes are listening to this event (they are sorted from higher priority to lower priority):
- Class: Zend\Mvc\View\Http\ViewManager. Method: onBootstrap. Priority: 10000. Task: preparing the view layer.
This event is triggered by the following classes:
- Zend\Mvc\Application: it's triggered in the
runmethod. - Zend\Mvc\Controller\AbstractController: it's triggered in the
dispatchmethod.
The following classes are listening to this event (they are sorted from higher priority to lower priority):
- Class: Zend\Mvc\View\Console\ViewManager. Methods: injectNamedParams(1000), createViewModelFromArray()
- Class: Zend\Mvc\DispatchListener. Method: onDispatch. Priority: 1. Task: try to load the matched controller from the service manager (and throws various exceptions if it does not). It then calls the
dispatchmethod of the given controller, and if any exception is thrown during the process, it triggers the MvcEvent::DISPATCH_ERROR event. - Class: Zend\Mvc\Controller\AbstractController. Method: onDispatch. Priority: 1. Task: executing the request.
- Class: Zend\Mvc\View\Console\CreateViewModelListener. Methods: createViewModelFromString, createViewModelFromArray, createViewModelFromNull. Priority: -80. Task: create a ConsoleModel instance from the getResult of MvcEvent, and then set the ConsoleModel as the new result of the MvcEvent.
- Class: Zend\Mvc\View\Console\InjectNamedConsoleParamsListener. Method: injectNamedParams. Priority: -80. Task:
This event is triggered by the following classes:
- Zend\Mvc\Application: it's triggered in the
runmethod. It also has a short circuit callback that allows to stop the propagation of the event if an error is raised during the routing.
The following classes are listening to this event (they are sorted from higher priority to lower priority):
- Zend\Mvc\ModuleRouteListener: this event is listened at a priority of 1. The method
onRouteis called. This listener determines if the module namespace should be prepended to the controller name. This is the case if the route match contains a parameter key matching the MODULE_NAMESPACE constant. - Zend\Mvc\RouteListener: this event is listened at a priority of 1. The method
onRouteis called. It tries to match the request to the router, and if the router does not return a RouteMatch object, this listener triggers the MvcEvent::EVENT_DISPATCH_ERROR.
This event is triggered by the following classes:
- Zend\Mvc\Application: it's triggered in the
completeRequestmethod, just before triggering the MvcEvent::FINISH event.
The following classes are listening to this event in Console context (they are sorted from higher priority to lower priority):
- Zend\Mvc\View\Console\DefaultRenderingStrategy: this event is listened at a priority of -10000, and the
rendermethod is called.
The following classes are listening to this event in Http context (they are sorted from higher priority to lower priority):
- Zend\Mvc\View\Console\DefaultRenderingStrategy: this event is listened at a priority of -10000, and the
rendermethod is called.
This event is triggered by the following classes:
- Zend\Mvc\Application: it's triggered in the
runand thecompleteRequestmethods.
The following classes are listening to this event (they are sorted from higher priority to lower priority):
- Zend\Mvc\SendResponseListener: this event is listened at a priority of -10000, and the
sendResponsemethod is called.