Skip to content

Commit b5c9e49

Browse files
Renamed exception thrower
1 parent 7c30f10 commit b5c9e49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use Bitbucket\HttpClient\Builder;
2525
use Bitbucket\HttpClient\Message\ResponseMediator;
2626
use Bitbucket\HttpClient\Plugin\Authentication;
27-
use Bitbucket\HttpClient\Plugin\BitbucketExceptionThrower;
27+
use Bitbucket\HttpClient\Plugin\ExceptionThrower;
2828
use Bitbucket\HttpClient\Plugin\History;
2929
use Http\Client\Common\Plugin\AddHostPlugin;
3030
use Http\Client\Common\Plugin\HeaderDefaultsPlugin;
@@ -102,7 +102,7 @@ public function __construct(Builder $httpClientBuilder = null)
102102
$this->httpClientBuilder = $builder = $httpClientBuilder ?? new Builder();
103103
$this->responseHistory = new History();
104104

105-
$builder->addPlugin(new BitbucketExceptionThrower());
105+
$builder->addPlugin(new ExceptionThrower());
106106
$builder->addPlugin(new HistoryPlugin($this->responseHistory));
107107
$builder->addPlugin(new RedirectPlugin());
108108

src/HttpClient/Plugin/BitbucketExceptionThrower.php renamed to src/HttpClient/Plugin/ExceptionThrower.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @author Fabien Bourigault <[email protected]>
3232
* @author Graham Campbell <[email protected]>
3333
*/
34-
final class BitbucketExceptionThrower implements Plugin
34+
final class ExceptionThrower implements Plugin
3535
{
3636
/**
3737
* Handle the request and return the response coming from the next callable.

0 commit comments

Comments
 (0)