Files
opentextsummaries/app/Providers/AppServiceProvider.php
T

28 lines
552 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
// Register GutendexClient as a singleton
$this->app->singleton(\App\Services\GutendexClient::class, function ($app) {
return new \App\Services\GutendexClient();
});
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}