Skip to content

Commit

Permalink
Re-enable Laravel Http client adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
sandervanhooft authored Dec 6, 2022
1 parent 4e50090 commit 6faa93b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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.1';
const PACKAGE_VERSION = '2.20.2';

/**
* Boot the service provider.
Expand Down Expand Up @@ -131,8 +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())->addVersionString('MollieLaravel/'.self::PACKAGE_VERSION);
return (new MollieApiClient(new MollieLaravelHttpClientAdapter))
->addVersionString('MollieLaravel/'.self::PACKAGE_VERSION);
});

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

0 comments on commit 6faa93b

Please sign in to comment.