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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -