From 88afcaff2058996472ea0a24b3613ee928aa0c91 Mon Sep 17 00:00:00 2001 From: Krystian Duma Date: Tue, 27 Dec 2022 19:22:28 +0100 Subject: [PATCH] Fix path --- src/Laravel/WebPrintClientServiceProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Laravel/WebPrintClientServiceProvider.php b/src/Laravel/WebPrintClientServiceProvider.php index 2e968ed..1ec0c4a 100644 --- a/src/Laravel/WebPrintClientServiceProvider.php +++ b/src/Laravel/WebPrintClientServiceProvider.php @@ -27,13 +27,14 @@ public function boot() */ public function register() { - $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'webprint'); + $this->mergeConfigFrom(__DIR__.'/../../config/config.php', 'webprint'); $this->app->bind(HttpClientInterface::class, fn () => new GuzzleHttp7Client( config('webprint.endpoint'), config('webprint.token'), )); + $this->app->bind(LaravelWebPrintApiInterface::class, LaravelWebPrintApi::class); $this->app->bind(WebPrintApiInterface::class, LaravelWebPrintApi::class); $this->app->bind(WebPrintApi::class, LaravelWebPrintApi::class); }