From 6faa93bb82845ff04b5544a8b0f4b7446006dfef Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Tue, 6 Dec 2022 10:49:11 +0100 Subject: [PATCH] Re-enable Laravel Http client adapter --- src/MollieServiceProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MollieServiceProvider.php b/src/MollieServiceProvider.php index 118f9f9..d8432ba 100644 --- a/src/MollieServiceProvider.php +++ b/src/MollieServiceProvider.php @@ -45,7 +45,7 @@ */ class MollieServiceProvider extends ServiceProvider { - const PACKAGE_VERSION = '2.20.1'; + const PACKAGE_VERSION = '2.20.2'; /** * Boot the service provider. @@ -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);