28 lines
458 B
PHP
28 lines
458 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use App\Services\AI\AIHandler;
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
|
||
|
class AIServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
/**
|
||
|
* Register services.
|
||
|
*/
|
||
|
public function register(): void
|
||
|
{
|
||
|
$this->app->singleton('ai.handler', function ($app) {
|
||
|
return new AIHandler();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Bootstrap services.
|
||
|
*/
|
||
|
public function boot(): void
|
||
|
{
|
||
|
//
|
||
|
}
|
||
|
}
|