Пример #1
0
 /**
  * Запуск менеджера проекта
  */
 public static function start()
 {
     if (!self::$Status) {
         include_once GLISS_DIR . 'kernel/Service.class.php';
         foreach (scandir(GLISS_DIR . 'service/') as $ServiceFile) {
             if ($ServiceFile != '.' && $ServiceFile != '..') {
                 $Service = str_replace('.class.php', null, $ServiceFile);
                 if (!g4::request($Service)) {
                     include_once GLISS_DIR . 'service/' . $ServiceFile;
                     g4::connect(new $Service());
                 }
             }
         }
         self::$Status = true;
     }
 }