Esempio n. 1
0
 /**
  * Update module registry
  *
  * @return void
  */
 public function updateModuleRegistry()
 {
     $calculatedHash = \XLite\Core\Database::getRepo('XLite\\Model\\Module')->calculateEnabledModulesRegistryHash();
     if (\Includes\Utils\ModulesManager::getEnabledStructureHash() != $calculatedHash) {
         \XLite\Core\Database::getRepo('XLite\\Model\\Module')->addEnabledModulesToRegistry();
         \Includes\Utils\ModulesManager::saveEnabledStructureHash($calculatedHash);
     }
 }