AscmvcEventManager

Extends \Laminas\EventManager\EventManager

Class AscmvcEventManager

The AscmvcEventManager class extends the Laminas\EventManager\EventManager class and adds events and logic that are specific to this MVC.

package

LightMVC/ASCMVC

Methods

AscmvcEventManager constructor.

__construct(\Laminas\EventManager\SharedEventManagerInterface|null $sharedEventManager = null, array $identifiers = array()) 

Arguments

$sharedEventManager

\Laminas\EventManager\SharedEventManagerInterface|null

$identifiers

array

Is triggered at runtime before the instantiation of the Router, Dispatcher and Controller classes.

onBootstrap(\Ascmvc\Mvc\AscmvcEvent $event) : \Laminas\Diactoros\Response|boolean

Arguments

Response

\Laminas\Diactoros\Response|boolean

Is triggered at runtime after the registration of the controller object, but before the controller manager's call to the controller's action method.

onDispatch(\Ascmvc\Mvc\AscmvcEvent $event) : mixed

Arguments

Response

mixed

Is triggered at runtime before flushing the buffers.

onFinish(\Ascmvc\Mvc\AscmvcEvent $event) : null

Arguments

Response

null

Is triggered at runtime when the Template Manager parses the view templates and the controller's output.

onRender(\Ascmvc\Mvc\AscmvcEvent $event) : mixed

Arguments

Response

mixed

Is triggered at runtime when the router tries to resolve the route.

onRoute(\Ascmvc\Mvc\AscmvcEvent $event) : mixed

Arguments

Response

mixed