public static function update($request, $object)
    {
        // request param
        $backend = Pluf::f('marketplace.backend', 'http://marketplace.webpich.com');
        $path = '/api/v2/marketplace/spas/' . $object->name . '/file';
        $file = Pluf::f('temp_folder', '/tmp') . '/spa-' . rand();
        // Do request
        $client = new GuzzleHttp\Client();
        $response = $client->request('GET', $backend . $path, [
            'sink' => $file
        ]);
        return Tenant_SpaService::updateFromFile($object, $file, true);
    }
public static function update($request, $object)
    {
        // request param
        $backend = Pluf::f('marketplace.backend', 'http://marketplace.webpich.com');
        $path = '/api/v2/marketplace/spas/' . $object->name . '/file';
        $file = Pluf::f('temp_folder', '/tmp') . '/spa-' . rand();
        // Do request
        $client = new GuzzleHttp\Client();
        $response = $client->request('GET', $backend . $path, [
            'sink' => $file
        ]);
        return Tenant_SpaService::updateFromFile($object, $file, true);
    }
public static function update ( $ request , $ object ) { // request param $ backend = Pluf :: f ( 'marketplace.backend' , 'http://marketplace.webpich.com' ) ; $ path = '/api/v2/marketplace/spas/' . $ object -> name . '/file' ; $ file = Pluf :: f ( 'temp_folder' , '/tmp' ) . '/spa-' . rand ( ) ; // Do request $ client = new GuzzleHttp \ Client ( ) ; $ response = $ client -> request ( 'GET' , $ backend . $ path , [ 'sink' => $ file ] ) ; return Tenant_SpaService :: updateFromFile ( $ object , $ file , true ) ; }
Update an spa

@param Pluf_HTTP_Request $request
@param Tenant_SPA $object
Update an spa