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:
commit
8ee415e612
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user