Files
ABSDEV/Modules/Commerce/Providers/CommerceServiceProvider.php
T
Mark Gregory 86f2bc75aa Commerce administration dashboard
* Product catalogue
* Product categories
* Physical, digital, service, and bundle product types
* Product variants and option storage
* SKU management
* Product publishing states
* Pricing and comparison pricing
* Inventory quantities
* Low-stock thresholds
* Inventory movement history
* Customer records and addresses
* Orders and order items
* Payment and fulfilment statuses
* Payment transaction storage
* Promotions and coupon codes
* Shipping methods
* Tax rates
* Payment, shipping, tax, and inventory provider contracts
* Default manual payment provider
* Default flat-rate shipping provider
* Public product REST API
* Administration navigation
* Commerce permissions
* Module registration
* Module boot tests
2026-07-24 12:24:12 +01:00

29 lines
1.3 KiB
PHP

<?php
namespace Modules\Commerce\Providers;
use Illuminate\Support\ServiceProvider;
use Modules\Commerce\Contracts\InventoryProvider;
use Modules\Commerce\Contracts\PaymentProvider;
use Modules\Commerce\Contracts\ShippingProvider;
use Modules\Commerce\Contracts\TaxProvider;
use Modules\Commerce\Services\DatabaseInventoryProvider;
use Modules\Commerce\Services\ManualPaymentProvider;
use Modules\Commerce\Services\FlatRateShippingProvider;
use Modules\Commerce\Services\ConfiguredTaxProvider;
final class CommerceServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->register(RouteServiceProvider::class);
$this->mergeConfigFrom(module_path('Commerce', 'Config/config.php'), 'commerce');
$this->app->bind(InventoryProvider::class, DatabaseInventoryProvider::class);
$this->app->bind(PaymentProvider::class, ManualPaymentProvider::class);
$this->app->bind(ShippingProvider::class, FlatRateShippingProvider::class);
$this->app->bind(TaxProvider::class, ConfiguredTaxProvider::class);
}
public function boot(): void
{
$this->loadMigrationsFrom(module_path('Commerce', 'Database/Migrations'));
$this->loadViewsFrom(module_path('Commerce', 'Resources/views'), 'commerce');
}
}