move into sonardesk
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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\ConfiguredTaxProvider;
|
||||
use Modules\Commerce\Services\DatabaseInventoryProvider;
|
||||
use Modules\Commerce\Services\FlatRateShippingProvider;
|
||||
use Modules\Commerce\Services\ManualPaymentProvider;
|
||||
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user