src/S3/Crypto/InstructionFileMetadataStrategy.php
public function save(MetadataEnvelope $envelope, array $args)
    {
        $this->client->putObject([
            'Bucket' => $args['Bucket'],
            'Key' => $args['Key'] . $this->suffix,
            'Body' => json_encode($envelope)
        ]);

        return $args;
    }
public function save(MetadataEnvelope $envelope, array $args)
    {
        $this->client->putObject([
            'Bucket' => $args['Bucket'],
            'Key' => $args['Key'] . $this->suffix,
            'Body' => json_encode($envelope)
        ]);

        return $args;
    }
public function save ( MetadataEnvelope $ envelope , array $ args ) { $ this -> client -> putObject ( [ 'Bucket' => $ args [ 'Bucket' ] , 'Key' => $ args [ 'Key' ] . $ this -> suffix , 'Body' => json_encode ( $ envelope ) ] ) ; return $ args ; }
Places the information in the MetadataEnvelope to a location on S3.

@param MetadataEnvelope $envelope Encryption data to save according to
the strategy.
@param array $args Starting arguments for PutObject, used for saving
extra the instruction file.

@return array Updated arguments for PutObject.
Places the information in the MetadataEnvelope to a location on S3 .