New-Thanasoft/thanasoft-back/app/Providers/RepositoryServiceProvider.php
2026-01-28 14:26:20 +03:00

38 lines
1.2 KiB
PHP

<?php
namespace App\Providers;
use App\Repositories\DeceasedRepositoryInterface;
use App\Repositories\DeceasedRepository;
use App\Repositories\DeceasedDocumentRepositoryInterface;
use App\Repositories\DeceasedDocumentRepository;
use App\Repositories\InterventionRepositoryInterface;
use App\Repositories\InterventionRepository;
use App\Repositories\FileRepositoryInterface;
use App\Repositories\FileRepository;
use Illuminate\Support\ServiceProvider;
class RepositoryServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register(): void
{
$this->app->bind(DeceasedRepositoryInterface::class, DeceasedRepository::class);
$this->app->bind(DeceasedDocumentRepositoryInterface::class, DeceasedDocumentRepository::class);
$this->app->bind(InterventionRepositoryInterface::class, InterventionRepository::class);
$this->app->bind(FileRepositoryInterface::class, FileRepository::class);
$this->app->bind(\App\Repositories\PurchaseOrderRepositoryInterface::class, \App\Repositories\PurchaseOrderRepository::class);
}
/**
* Bootstrap services.
*/
public function boot(): void
{
//
}
}