src/yimaTheme/Module.php
public function init(ModuleManagerInterface $moduleModuleManager)
    {
        $events = $moduleModuleManager->getEventManager();
        $events->attach(
            ModuleEvent::EVENT_LOAD_MODULES_POST,
            array($this,'initThemeManager'),
            -100000
        );

        $events->attach(
            ModuleEvent::EVENT_LOAD_MODULES_POST,
            array($this,'onLoadModulesPostAddServices'),
            -100000
        );
    }
public function init(ModuleManagerInterface $moduleModuleManager)
    {
        $events = $moduleModuleManager->getEventManager();
        $events->attach(
            ModuleEvent::EVENT_LOAD_MODULES_POST,
            array($this,'initThemeManager'),
            -100000
        );

        $events->attach(
            ModuleEvent::EVENT_LOAD_MODULES_POST,
            array($this,'onLoadModulesPostAddServices'),
            -100000
        );
    }
Initialize workflow

@param \Zend\ModuleManager\ModuleManagerInterface $moduleModuleManager
@internal param \Zend\ModuleManager\ModuleManagerInterface $manager
@return void