36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Repositories\Interfaces\CarRepositoryInterface;
|
|
use App\Repositories\Interfaces\DeliveryRepositoryInterface;
|
|
use App\Repositories\Interfaces\UserRepositoryInterface;
|
|
use App\Repositories\Interfaces\WarehouseRepositoryInterface;
|
|
use App\Repositories\SQL\CarRepository;
|
|
use App\Repositories\SQL\DeliveryRepository;
|
|
use App\Repositories\SQL\UserRepository;
|
|
use App\Repositories\SQL\WarehouseRepository;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class RepositoryServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
$this->app->bind(UserRepositoryInterface::class, UserRepository::class);
|
|
$this->app->bind(DeliveryRepositoryInterface::class, DeliveryRepository::class);
|
|
$this->app->bind(CarRepositoryInterface::class, CarRepository::class);
|
|
$this->app->bind(WarehouseRepositoryInterface::class, WarehouseRepository::class);
|
|
}
|
|
|
|
/**
|
|
* Bootstrap services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
}
|