public function main()
 {
     /* Find all loaded modules */
     $modules = [];
     foreach (Module::getLoadedModules() as $module) {
         if (is_file($module . "/" . self::$specificationIndex)) {
             $modules[] = Document::parse($module . "/" . self::$specificationIndex);
         }
     }
     return $modules;
 }
示例#2
0
 private static function install()
 {
     Module::install();
 }
示例#3
0
 private static function initialize()
 {
     if (self::$isInitialized) {
         return;
     }
     Module::initialize();
     self::$isInitialized = true;
 }