library/Services/ModuleInstaller/ModuleInstaller.php
private function loadModule($modulePath)
    {
        $module = oxNew(\OxidEsales\Eshop\Core\Module\Module::class);
        if (!$module->loadByDir($modulePath)) {
            throw new Exception("Module not found");
        }
        return $module;
    }
private function loadModule($modulePath)
    {
        $module = oxNew(\OxidEsales\Eshop\Core\Module\Module::class);
        if (!$module->loadByDir($modulePath)) {
            throw new Exception("Module not found");
        }
        return $module;
    }
private function loadModule ( $ modulePath ) { $ module = oxNew ( \ OxidEsales \ Eshop \ Core \ Module \ Module :: class ) ; if ( ! $ module -> loadByDir ( $ modulePath ) ) { throw new Exception ( "Module not found" ) ; } return $ module ; }
Loads module object from given directory.

@param string $modulePath The path to the module.

@return \OxidEsales\Eshop\Core\Module\Module
@throws Exception
Loads module object from given directory .