php - ZF2 RESTful Controller Events Not Triggering -


should zf2's mvc events trigger same action , rest controllers?

i'm writing , acl module attaches event onbootstrap. problem dispatch event not triggered when controller extends abstractrestfulcontroller, when extends abstractactioncontroller. know workarounds?

//acl module.php public function onbootstrap(mvcevent $e){   $eventmanager = $e->getapplication()->geteventmanager();   $eventmanager->attach(mvcevent::event_dispatch, array($this, "checkauth"); }   public function checkauth(mvcevent e){   //this method gets called when controller extends abstractactioncontroller } 


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -