51 lines
1.9 KiB
PHP
51 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Repositories\AddressRepository;
|
|
use App\Repositories\AddressRepositoryInterface;
|
|
use App\Repositories\ContactRepository;
|
|
use App\Repositories\ContactRepositoryInterface;
|
|
use App\Repositories\OrderRepository;
|
|
use App\Repositories\OrderRepositoryInterface;
|
|
use App\Repositories\PackRepository;
|
|
use App\Repositories\PackRepositoryInterface;
|
|
use App\Repositories\PriceListRepository;
|
|
use App\Repositories\PriceListRepositoryInterface;
|
|
use App\Repositories\ProducerRepository;
|
|
use App\Repositories\ProducerRepositoryInterface;
|
|
use App\Repositories\ProductRepository;
|
|
use App\Repositories\ProductRepositoryInterface;
|
|
use App\Repositories\ProfitCenterRepository;
|
|
use App\Repositories\ProfitCenterRepositoryInterface;
|
|
use App\Repositories\SupplierRepository;
|
|
use App\Repositories\SupplierRepositoryInterface;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
$this->app->bind(AddressRepositoryInterface::class, AddressRepository::class);
|
|
$this->app->bind(ContactRepositoryInterface::class, ContactRepository::class);
|
|
$this->app->bind(OrderRepositoryInterface::class, OrderRepository::class);
|
|
$this->app->bind(PackRepositoryInterface::class, PackRepository::class);
|
|
$this->app->bind(PriceListRepositoryInterface::class, PriceListRepository::class);
|
|
$this->app->bind(ProducerRepositoryInterface::class, ProducerRepository::class);
|
|
$this->app->bind(ProductRepositoryInterface::class, ProductRepository::class);
|
|
$this->app->bind(ProfitCenterRepositoryInterface::class, ProfitCenterRepository::class);
|
|
$this->app->bind(SupplierRepositoryInterface::class, SupplierRepository::class);
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
}
|