Namespaced 'dispatch.error' Events.

                        $sharedEvents = 
$e->getApplication()->getEventManager()->getSharedManager();
                        $sharedEvents->attach(__NAMESPACE__, 'dispatch', 
function($e) {
                                die('test');
                        }, 100);

The above will trigger and only trigger in the module to which is under 
__NAMESPACE__

However .error doesnt seem to trigger at all? Is this expected? whats the logic 
to having a error trigger for a certain module instead of having it global 
across the application?

                        $sharedEvents = 
$e->getApplication()->getEventManager()->getSharedManager();
                        $sharedEvents->attach(__NAMESPACE__, 'dispatch.error', 
function($e) {
                                die('test');
                        }, 100);



P.s I removed MvcEvent::EVENT_DISPATCH_ERROR etc to make it easier to read.. I 
know the constants exist.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to