Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Fixed issue with wrong event used in the onFinish() method for Stopwa…
Browse files Browse the repository at this point in the history
…tchSubscriber
  • Loading branch information
csarrazi committed Jan 12, 2015
1 parent a0c547a commit 8b80728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/GuzzleHttp/Subscriber/StopwatchSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Csa\Bundle\GuzzleBundle\GuzzleHttp\Subscriber;

use GuzzleHttp\Event\AbstractRetryableEvent;
use GuzzleHttp\Event\CompleteEvent;
use GuzzleHttp\Event\BeforeEvent;
use GuzzleHttp\Event\RequestEvents;
use GuzzleHttp\Event\SubscriberInterface;
Expand Down Expand Up @@ -45,7 +45,7 @@ public function onBefore(BeforeEvent $event)
$this->stopwatch->start($event->getRequest()->getUrl(), 'guzzle');
}

public function onFinish(AbstractRetryableEvent $event)
public function onFinish(CompleteEvent $event)
{
$url = $event->getRequest()->getUrl();

Expand Down

0 comments on commit 8b80728

Please sign in to comment.