*/ abstract class InstallAction extends AbstractAction { /** * Add a new event Listener * * @param mixed $event either an Event object or a string * @param Callable $callback */ public function registerEvent($event, $callback) { $eventManager = $this->getServiceLocator()->get(EventManager::CONFIG_ID); $eventManager->attach($event, $callback); $this->getServiceManager()->register(EventManager::CONFIG_ID, $eventManager); } }