Files
myocardial/app/Providers/RepositoryServiceProvider.php
T
2026-06-23 13:28:38 +07:00

40 lines
1.0 KiB
PHP

<?php
namespace App\Providers;
use App\Interfaces\DiagnoseRepositoryInterface;
use App\Interfaces\DoctorRepositoryInterface;
use App\Interfaces\PatientRepositoryInterface;
use App\Interfaces\UserRepositoryInterface;
use App\Repositories\DiagnoseRepository;
use App\Repositories\DoctorRepository;
use App\Repositories\PatientRepository;
use App\Repositories\UserRepository;
use Illuminate\Support\ServiceProvider;
class RepositoryServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
$this->app->bind(PatientRepositoryInterface::class, PatientRepository::class);
$this->app->bind(UserRepositoryInterface::class, UserRepository::class);
$this->app->bind(DoctorRepositoryInterface::class, DoctorRepository::class);
$this->app->bind(DiagnoseRepositoryInterface::class, DiagnoseRepository::class);
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
//
}
}