original_string: protected static function _buildTransport($name)
      {
          if (!isset(static::$_config[$name])) {
              throw new InvalidArgumentException(
                  sprintf('The "%s" transport configuration does not exist', $name)
              );
          }
  
          if (is_array(static::$_config[$name]) && empty(static::$_config[$name]['className'])) {
              throw new InvalidArgumentException(
                  sprintf('Transport config "%s" is invalid, the required `className` option is missing', $name)
              );
          }
  
          static::getRegistry()->load($name, static::$_config[$name]);
      }
code: protected static function _buildTransport($name)
      {
          if (!isset(static::$_config[$name])) {
              throw new InvalidArgumentException(
                  sprintf('The "%s" transport configuration does not exist', $name)
              );
          }
  
          if (is_array(static::$_config[$name]) && empty(static::$_config[$name]['className'])) {
              throw new InvalidArgumentException(
                  sprintf('Transport config "%s" is invalid, the required `className` option is missing', $name)
              );
          }
  
          static::getRegistry()->load($name, static::$_config[$name]);
      }
code_tokens: protected static function _buildTransport ( $ name ) { if ( ! isset ( static :: $ _config [ $ name ] ) ) { throw new InvalidArgumentException ( sprintf ( 'The "%s" transport configuration does not exist' , $ name ) ) ; } if ( is_array ( static :: $ _config [ $ name ] ) && empty ( static :: $ _config [ $ name ] [ 'className' ] ) ) { throw new InvalidArgumentException ( sprintf ( 'Transport config "%s" is invalid, the required `className` option is missing' , $ name ) ) ; } static :: getRegistry ( ) -> load ( $ name , static :: $ _config [ $ name ] ) ; }
docstring: Finds and builds the instance of the required tranport class.
  
  @param string $name Name of the config array that needs a tranport instance built
  @return void
  @throws \InvalidArgumentException When a tranport cannot be created.
docstring_tokens: Finds and builds the instance of the required tranport class .