34 lines
606 B
PHP
34 lines
606 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Clients\AgentClient;
|
|
use App\Clients\MonoClient;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class ClientServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(AgentClient::class, function () {
|
|
return new AgentClient();
|
|
});
|
|
|
|
$this->app->singleton(MonoClient::class, function () {
|
|
return new MonoClient();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Bootstrap services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
}
|
|
|