/** * Load mods for file system. */ private static function _loadMods() { global $srcdir; self::$mods = array(); $fobjs = scandir($srcdir . '/extends'); foreach ($fobjs as $obj) { $defs = $srcdir . '/extends/' . $obj . '/defs.yml'; if ($obj[0] != '.' && is_file($defs)) { $mod = spyc_load_file($defs); $mod['sysdir'] = $obj; self::$mods[] = $mod; } } }