Files
opentextsummaries/app/Providers/AppServiceProvider.php
T

28 lines
552 B
PHP
Raw Normal View History

2025-09-13 17:39:17 +03:00
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
2026-03-29 15:28:24 +03:00
// Register GutendexClient as a singleton
$this->app->singleton(\App\Services\GutendexClient::class, function ($app) {
return new \App\Services\GutendexClient();
});
2025-09-13 17:39:17 +03:00
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}