Example #1
0
 /**
  * Returns the available information about the given module
  *
  * @param string $module
  *
  * @return array
  */
 public function getModuleInfo($module)
 {
     $module = strtolower($module);
     if (empty($this->modulesInfo)) {
         $this->modulesInfo = $this->moduleInfoCache->getModulesInfoCache();
     }
     return !empty($this->modulesInfo[$module]) ? $this->modulesInfo[$module] : [];
 }
Example #2
0
 protected function renewCaches()
 {
     $this->get('core.lang.dictionary_cache')->saveLanguageCache($this->translator->getLocale());
     $this->moduleInfoCache->saveModulesInfoCache();
     $this->permissionsCache->saveResourcesCache();
 }