Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($contentMd5Param='ContentMD5', $validateMd5Param='ValidateMD5') | |
onCommandBeforeSend (Event $event) | |
Static Public Member Functions | |
static | getSubscribedEvents () |
Protected Attributes | |
$contentMd5Param | |
$validateMd5Param | |
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
Definition at line 13 of file CommandContentMd5Plugin.php.
Guzzle\Plugin\Md5\CommandContentMd5Plugin::__construct | ( | $contentMd5Param = 'ContentMD5' , |
|
$validateMd5Param = 'ValidateMD5' |
|||
) |
string | $contentMd5Param | Parameter used to check if the ContentMD5 value is being added |
string | $validateMd5Param | Parameter used to check if validation should occur on the response |
Definition at line 31 of file CommandContentMd5Plugin.php.
References Guzzle\Plugin\Md5\CommandContentMd5Plugin\$contentMd5Param, and Guzzle\Plugin\Md5\CommandContentMd5Plugin\$validateMd5Param.
|
static |
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
Implements Symfony\Component\EventDispatcher\EventSubscriberInterface.
Definition at line 37 of file CommandContentMd5Plugin.php.
Referenced by Guzzle\Tests\Plugin\Md5\CommandContentMd5PluginTest\testHasEvents().
Guzzle\Plugin\Md5\CommandContentMd5Plugin::onCommandBeforeSend | ( | Event | $event | ) |
Definition at line 42 of file CommandContentMd5Plugin.php.
References Guzzle\Http\Message\EntityEnclosingRequestInterface\getBody().
|
protected |
Parameter used to check if the ContentMD5 value is being added
Definition at line 19 of file CommandContentMd5Plugin.php.
Referenced by Guzzle\Plugin\Md5\CommandContentMd5Plugin\__construct().
|
protected |
Parameter used to check if validation should occur on the response
Definition at line 25 of file CommandContentMd5Plugin.php.
Referenced by Guzzle\Plugin\Md5\CommandContentMd5Plugin\__construct().