From b16e1307913bdc549057e03fdc4985db82e576a3 Mon Sep 17 00:00:00 2001 From: Romain Bertolucci Date: Wed, 1 Sep 2021 14:09:25 +0200 Subject: [PATCH] Modification du Service Provider et suppression de la facade --- src/PennylaneLaravelFacade.php | 21 --------------------- src/PennylaneLaravelServiceProvider.php | 6 ++++-- 2 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 src/PennylaneLaravelFacade.php diff --git a/src/PennylaneLaravelFacade.php b/src/PennylaneLaravelFacade.php deleted file mode 100644 index dfe1c67..0000000 --- a/src/PennylaneLaravelFacade.php +++ /dev/null @@ -1,21 +0,0 @@ -mergeConfigFrom(__DIR__.'/../config/config.php', 'pennylane-laravel'); - $client = new \GuzzleHttp\Client([ + $client = new Client([ 'base_uri' => config('pennylane-laravel.endpoint'), 'headers' => [ "Authorization" => "Bearer ".config('pennylane-laravel.key') @@ -60,7 +62,7 @@ public function register() ]); // Register the main class to use with the facade - $this->app->singleton('pennylane-laravel', function () use ($client) { + $this->app->singleton(PennylaneLaravel::class, function () use ($client) { return new PennylaneLaravel($client); }); }