NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class CommandContentMd5Plugin

Listener used to add a ContentMD5 header to the body of a command and adds ContentMD5 validation if the ValidateMD5 option is not set to false on a command

  Guzzle\Plugin\Md5\CommandContentMd5Plugin implements Symfony\Component\EventDispatcher\EventSubscriberInterface

Namespace: Guzzle\Plugin\Md5
Located at Guzzle/Plugin/Md5/CommandContentMd5Plugin.php

## Methods summary

- `public` `__construct ( string $contentMd5Param = 'ContentMD5', string $validateMd5Param = 'ValidateMD5' )`
- `public static` `getSubscribedEvents ( )`
- `public` `onCommandBeforeSend ( Guzzle\Common\Event $event )`

## Methods detail

# `public`
`__construct( string $contentMd5Param = 'ContentMD5', string $validateMd5Param = 'ValidateMD5' )`

#### Parameters

$contentMd5Param
  `string`
  $contentMd5Param Parameter used to check if the ContentMD5 value is being added
$validateMd5Param
  `string`
  $validateMd5Param Parameter used to check if validation should occur on the response

# `public static`
`getSubscribedEvents( )`
# `public`
`onCommandBeforeSend( `Guzzle\Common\Event` $event )`

### Magic methods summary

## Properties summary

`protected string` | $contentMd5Param | # Parameter used to check if the ContentMD5 value is being added
`protected string` | $validateMd5Param | # Parameter used to check if validation should occur on the response