public static function build(AbstractRequest $request)
    {
        $name = get_class($request);
        if (!isset(self::$loaded[$name])) {
            self::$loaded[$name] = new CurlHandle();
        } else {
            self::$loaded[$name]->reset();
        }
        self::$loaded[$name]->prepare($request);

        return self::$loaded[$name];
    }
public static function build(AbstractRequest $request)
    {
        $name = get_class($request);
        if (!isset(self::$loaded[$name])) {
            self::$loaded[$name] = new CurlHandle();
        } else {
            self::$loaded[$name]->reset();
        }
        self::$loaded[$name]->prepare($request);

        return self::$loaded[$name];
    }
public static function build ( AbstractRequest $ request ) { $ name = get_class ( $ request ) ; if ( ! isset ( self :: $ loaded [ $ name ] ) ) { self :: $ loaded [ $ name ] = new CurlHandle ( ) ; } else { self :: $ loaded [ $ name ] -> reset ( ) ; } self :: $ loaded [ $ name ] -> prepare ( $ request ) ; return self :: $ loaded [ $ name ] ; }
Build the Handle instance based on the given request
@param AbstractRequest $request
@return HandleInterface
Build the Handle instance based on the given request