29 lines
596 B
PHP
29 lines
596 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace App\Providers;
|
||
|
|
|
||
|
|
use App\Services\Runware\RunwareClient;
|
||
|
|
use Illuminate\Support\ServiceProvider;
|
||
|
|
|
||
|
|
class AppServiceProvider extends ServiceProvider
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Register any application services.
|
||
|
|
*/
|
||
|
|
public function register(): void
|
||
|
|
{
|
||
|
|
$this->app->singleton(RunwareClient::class, fn () => new RunwareClient(
|
||
|
|
apiKey: (string) config('runware.api_key'),
|
||
|
|
baseUrl: (string) config('runware.base_url'),
|
||
|
|
));
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Bootstrap any application services.
|
||
|
|
*/
|
||
|
|
public function boot(): void
|
||
|
|
{
|
||
|
|
//
|
||
|
|
}
|
||
|
|
}
|