Пример #1
0
 /**
  * 记载配置文件
  */
 public function loadConf()
 {
     $iniPath = self::$_path . '/conf/serv_conf.ini';
     $config = parse_ini_file($iniPath, true);
     // server log
     $config['SETTING']['log_file'] = self::$_path . '/log/swoole.log';
     self::$_settings = array_merge(self::$_settings, $config['SETTING']);
     self::$_serverType = $config['LISTENING']['type'];
     self::$_serverPort = $config['LISTENING']['port'];
     self::$_name = $config['INFO']['name'];
     self::$businessSetting = $config['BUSINESS'];
     self::$bootFile = $config['bootFile'];
 }