getServiceManager()->get(EventManager::SERVICE_ID); $eventManager->attach( ResourceMovedEvent::class, [ ResourceUpdateHandler::class, 'catchResourceUpdated' ] ); $this->getServiceManager()->register(EventManager::SERVICE_ID, $eventManager); } }