Categories


Archives


Recent Posts


Categories


Magento 2: Stand Alone Event Manager

astorm

Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

While you still call Mage::dispatchEvent to dispatch an event, Magento 2 has moved responsibility for event dispatch out of the Mage_Core_Mode_App class and into a stand alone Mage_Core_Model_Event_Manager class. If you’re debugging events the final dispatch method you’re interested in is

#File: app/code/Mage/Core/Model/Event/Manager.php
public function dispatch($eventName, array $data = array())
{
    //...
}

Copyright © Alan Storm 1975 – 2019 All Rights Reserved

Originally Posted: 21st August 2013