Beispiel #1
0
 static function init()
 {
     $conf = (include CONF_ROOT . '/db.php');
     \firegit\db\Db::init($conf);
     Hook::addHook('preReceive', '\\firegit\\app\\hook\\Git::preReceive');
     Hook::addHook('postReceive', '\\firegit\\app\\hook\\Git::postReceive');
 }
Beispiel #2
0
 /**
  * 初始化数据库
  */
 public static function initDb()
 {
     $conf = (include CONF_ROOT . '/db.php');
     \firegit\db\Db::init($conf);
 }