public static function init($config)
 {
     static::$host = $config['host'];
     static::$port = $config['port'];
     static::$pid_file = $config['pid_file'];
     static::$root_dir = $config['root_dir'];
     static::$gzip = $config['gzip'];
     static::$gzip_min_length = $config['gzip_min_length'];
 }
Esempio n. 2
0
 protected function init($config)
 {
     static::$host = $config['host'];
     static::$port = $config['port'];
     static::$pid_file = $config['pid_file'];
     static::$root_dir = $config['root_dir'];
     static::$deal_with_public = $config['deal_with_public'];
     static::$gzip = $config['gzip'];
     static::$gzip_min_length = $config['gzip_min_length'];
 }