/** * 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] : []; }
protected function renewCaches() { $this->get('core.lang.dictionary_cache')->saveLanguageCache($this->translator->getLocale()); $this->moduleInfoCache->saveModulesInfoCache(); $this->permissionsCache->saveResourcesCache(); }