protected function _prepareArrayModule(array &$module, &$moduleObject = false)
    {
        $moduleName = key($module);
        $module     = $module[$moduleName];

        if (is_object($module))
            $moduleObject = $module;
        
        # we want to register module name on event only if instance object resolved
        $module = $moduleName;
    }
protected function _prepareArrayModule(array &$module, &$moduleObject = false)
    {
        $moduleName = key($module);
        $module     = $module[$moduleName];

        if (is_object($module))
            $moduleObject = $module;
        
        # we want to register module name on event only if instance object resolved
        $module = $moduleName;
    }
protected function _prepareArrayModule ( array & $ module , & $ moduleObject = false ) { $ moduleName = key ( $ module ) ; $ module = $ module [ $ moduleName ] ; if ( is_object ( $ module ) ) $ moduleObject = $ module ; # we want to register module name on event only if instance object resolved $ module = $ moduleName ; }
Resolve to instance modules options

load(['moduleName' => X])
X can be module object instance or module manager options

@param array         $module
@param bool          $moduleObject
Resolve to instance modules options