26 lines
530 B
PHP
26 lines
530 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(\App\Services\DvlaService::class, function (): \App\Services\DvlaService {
|
|
return new \App\Services\DvlaService(
|
|
apiKey: config('services.dvla.api_key')
|
|
);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
}
|