Skip to content

Commit

Permalink
Merge pull request #214 from mollie/sandervanhooft-temp-revert-larave…
Browse files Browse the repository at this point in the history
…l-http-client

Revert Laravel http client resolution
  • Loading branch information
sandervanhooft authored Dec 5, 2022
2 parents 7463bc7 + 995059f commit c491c95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/MollieServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
*/
class MollieServiceProvider extends ServiceProvider
{
const PACKAGE_VERSION = '2.20.0';
const PACKAGE_VERSION = '2.20.1';

/**
* Boot the service provider.
Expand Down Expand Up @@ -131,7 +131,8 @@ protected function registerApiAdapter()
protected function registerApiClient()
{
$this->app->singleton('mollie.api.client', function () {
return (new MollieApiClient(new MollieLaravelHttpClientAdapter()))->addVersionString('MollieLaravel/'.self::PACKAGE_VERSION);
// return (new MollieApiClient(new MollieLaravelHttpClientAdapter()))->addVersionString('MollieLaravel/'.self::PACKAGE_VERSION);
return (new MollieApiClient())->addVersionString('MollieLaravel/'.self::PACKAGE_VERSION);
});

$this->app->alias('mollie.api.client', MollieApiClient::class);
Expand Down

0 comments on commit c491c95

Please sign in to comment.