1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 18:43:22 +01:00

Merge pull request #208 from zachbadgett/Service-Client-Fix

Fixed bug where iteration to the event 'command.after_send' sent a Request object instead of a Command object.
This commit is contained in:
Michael Dowling 2013-01-10 13:40:32 -08:00
commit 8ee415e612

View File

@ -239,8 +239,8 @@ class Client extends HttpClient implements ClientInterface
}
}
foreach ($successful as $c) {
$this->dispatch('command.after_send', array('command' => $c));
foreach ($successful as $success) {
$this->dispatch('command.after_send', array('command' => $successful[$success]));
}
// Return the response or throw an exception