public static function scan() { Browser::warn("Scanning All Web Modules"); ResourceUtil::$RESOURCE_DIST_DIR = "resources_cache"; // READ MODULES self::$webmodules = self::getModuleProperties(LIB_PATH, self::$webmodules); self::$webmodules = self::getModuleProperties(RESOURCE_PATH, self::$webmodules); self::$cache->set('webmodules', self::$webmodules); // CREATE MODULE FILES self::$modulefiles = array(); $header = new Header(); if (!empty(self::$webmodules['bundles'])) { foreach (self::$webmodules['bundles'] as $module => $moduleObject) { $header->_import($module); } } $header->minify(); self::$cache->set('modulefiles', self::$modulefiles); self::$cache->save(); FileUtil::build_write(self::$BUNDLE_PATH, json_encode(Header::getModules())); Browser::info(self::$webmodules, self::$modulefiles); }