$commands
$commands : array
Prepares the body parameter of a command such that the parameter is more flexible (e.g. accepts file handles) with the value it accepts but converts it to the correct format for the command. Also looks for a "Filename" parameter.
getSubscribedEvents() : array
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:
The event names to listen to
onCommandBeforePrepare(\Guzzle\Common\Event $event)
Converts filenames and file handles into EntityBody objects before the command is validated
\Guzzle\Common\Event | $event | Event emitted |
Loading…