Skip to content

Commit 34f7077

Browse files
Renamed exception thrower
1 parent 35fef89 commit 34f7077

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
@@ -31,7 +31,7 @@
3131
use Gitlab\Api\Wiki;
3232
use Gitlab\HttpClient\Builder;
3333
use Gitlab\HttpClient\Plugin\Authentication;
34-
use Gitlab\HttpClient\Plugin\GitlabExceptionThrower;
34+
use Gitlab\HttpClient\Plugin\ExceptionThrower;
3535
use Gitlab\HttpClient\Plugin\History;
3636
use Http\Client\Common\HttpMethodsClientInterface;
3737
use Http\Client\Common\Plugin\AddHostPlugin;
@@ -103,7 +103,7 @@ public function __construct(Builder $httpClientBuilder = null)
103103
$this->httpClientBuilder = $builder = $httpClientBuilder ?? new Builder();
104104
$this->responseHistory = new History();
105105

106-
$builder->addPlugin(new GitlabExceptionThrower());
106+
$builder->addPlugin(new ExceptionThrower());
107107
$builder->addPlugin(new HistoryPlugin($this->responseHistory));
108108
$builder->addPlugin(new HeaderDefaultsPlugin([
109109
'User-Agent' => self::USER_AGENT,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @internal
2424
*/
25-
final class GitlabExceptionThrower implements Plugin
25+
final class ExceptionThrower implements Plugin
2626
{
2727
/**
2828
* Handle the request and return the response coming from the next callable.

0 commit comments

Comments
 (0)