public function createService(ServiceLocatorInterface $container) { return $this($container, ModuleManager::class); }
public function createService(ServiceLocatorInterface $serviceLocator) { $moduleManager = parent::createService($serviceLocator); $events = $moduleManager->getEventManager(); $events->attach(ModuleEvent::EVENT_LOAD_MODULES, array($this, 'onLoadModules'), 1000); return $moduleManager; }