2026-01-26 14:59:24 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Modules\Inventory;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
use App\Modules\Inventory\Contracts\InventoryServiceInterface;
|
2026-02-23 10:10:03 +08:00
|
|
|
use App\Modules\Inventory\Contracts\ProductServiceInterface;
|
2026-01-26 14:59:24 +08:00
|
|
|
use App\Modules\Inventory\Services\InventoryService;
|
2026-02-23 10:10:03 +08:00
|
|
|
use App\Modules\Inventory\Services\ProductService;
|
2026-01-26 14:59:24 +08:00
|
|
|
|
|
|
|
|
class InventoryServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
public function register(): void
|
|
|
|
|
{
|
|
|
|
|
$this->app->bind(InventoryServiceInterface::class, InventoryService::class);
|
2026-02-23 10:10:03 +08:00
|
|
|
$this->app->bind(ProductServiceInterface::class, ProductService::class);
|
2026-01-26 14:59:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function boot(): void
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
}
|