original_string: protected function configureSwooleServer()
      {
          $config = $this->app->make('config');
          $options = $config->get('swoole_http.server.options');
  
          // only enable task worker in websocket mode and for queue driver
          if ($config->get('queue.default') !== 'swoole' && ! $this->isWebsocket) {
              unset($options['task_worker_num']);
          }
  
          static::$server->set($options);
      }
code: protected function configureSwooleServer()
      {
          $config = $this->app->make('config');
          $options = $config->get('swoole_http.server.options');
  
          // only enable task worker in websocket mode and for queue driver
          if ($config->get('queue.default') !== 'swoole' && ! $this->isWebsocket) {
              unset($options['task_worker_num']);
          }
  
          static::$server->set($options);
      }
code_tokens: protected function configureSwooleServer ( ) { $ config = $ this -> app -> make ( 'config' ) ; $ options = $ config -> get ( 'swoole_http.server.options' ) ; // only enable task worker in websocket mode and for queue driver if ( $ config -> get ( 'queue.default' ) !== 'swoole' && ! $ this -> isWebsocket ) { unset ( $ options [ 'task_worker_num' ] ) ; } static :: $ server -> set ( $ options ) ; }
docstring: Set swoole server configurations.
docstring_tokens: Set swoole server configurations .