AscmvcEventManagerListenerInterface

Extends \Ascmvc\AscmvcBootstrapListenerInterface, \Ascmvc\AscmvcDispatchListenerInterface, \Ascmvc\AscmvcRenderListenerInterface, \Ascmvc\AscmvcFinishListenerInterface

EventManagerListenerInterface allows the implementing class to be consumed as a AscmvcEventManager class listener.

The interface's methods correspond exactly to the application's main events as they are defined in its run() method so that, in turn, these methods may be dynamically called by the EventManager's event-driven "trigger" methods.

package

LightMVC/ASCMVC

Methods

Allows an implementing object to interrupt the application's runtime before the instantiation of the Router, Dispatcher and Controller classes.

onBootstrap(\Ascmvc\Mvc\AscmvcEvent $event) 
inherited static

Arguments

Allows an implementing object to interrupt the application's runtime after the registration of the controller object, but before the controller manager's call to the controller's action method. This phase allows for controller specific configuration.

onDispatch(\Ascmvc\Mvc\AscmvcEvent $event) 
inherited

Arguments

Allows an implementing object to interrupt the application's runtime before flushing the buffers.

onFinish(\Ascmvc\Mvc\AscmvcEvent $event) 
inherited

Arguments

Allows an implementing object to interrupt the application's runtime when the Template Manager parses the view templates and the controller's output.

onRender(\Ascmvc\Mvc\AscmvcEvent $event) 
inherited

Arguments