Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
kduma committed Dec 27, 2022
1 parent 07eb169 commit 88afcaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Laravel/WebPrintClientServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 88afcaf

Please sign in to comment.