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]);
    }
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]);
    }
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 ] ) ; }
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.
Finds and builds the instance of the required tranport class .