public static function registModule($name) { $intPos = strpos($name, ':'); if ($intPos === false) { return; } else { $femodule = substr($name, 0, $intPos); } $configPath = BIGPIPE_CONF_DIR; if (!in_array($femodule, self::$registedMoudle)) { $mapPath = $configPath . '/' . $femodule . '-map.json'; $map = json_decode(file_get_contents($mapPath), true); BigPipeResource::setupMap($map); self::$registedMoudle[] = $femodule; } }