src/Listener/IntegrationModuleListener.php
public function attach(EventManagerInterface $events)
    {
        $sharedEventManager = $events->getSharedManager();
        $integrationModuleEventHandler = $sharedEventManager->attach(
            IntegrationModuleInterface::class,
            IntegrationModuleEventInterface::INIT_INTEGRATION_MODULE_EVENT,
            [$this, 'initIntegrationModuleEventHandler']
        );
        $this->sharedListeners[] = [
            'listener' => $integrationModuleEventHandler,
            'id' => IntegrationModuleInterface::class
        ];

        $this->listeners[] = $events->attach(
            ModuleEvent::EVENT_LOAD_MODULES_POST,
            [$this, 'configuringServiceModulesHandler'],
            $this->configuringServiceModulesHandlerPriority
        );
    }
public function attach(EventManagerInterface $events)
    {
        $sharedEventManager = $events->getSharedManager();
        $integrationModuleEventHandler = $sharedEventManager->attach(
            IntegrationModuleInterface::class,
            IntegrationModuleEventInterface::INIT_INTEGRATION_MODULE_EVENT,
            [$this, 'initIntegrationModuleEventHandler']
        );
        $this->sharedListeners[] = [
            'listener' => $integrationModuleEventHandler,
            'id' => IntegrationModuleInterface::class
        ];

        $this->listeners[] = $events->attach(
            ModuleEvent::EVENT_LOAD_MODULES_POST,
            [$this, 'configuringServiceModulesHandler'],
            $this->configuringServiceModulesHandlerPriority
        );
    }
@inheritdoc

@param EventManagerInterface $events - это EventManager сервиса \Zend\ModuleManager\ModuleManagerInterface