libs/cart-customer/driver/magento/src/cart-driver.module.ts
import { CommonModule } from '@angular/common';
import {
NgModule,
ModuleWithProviders,
} from '@angular/core';
import {
provideDaffCartAddressDriver,
provideDaffCartBillingAddressDriver,
provideDaffCartDriver,
provideDaffCartPaymentDriver,
provideDaffCartShippingAddressDriver,
} from '@daffodil/cart/driver';
import { DaffMagentoCartCustomerAddressService } from './cart-address.service';
import { DaffMagentoCartCustomerBillingAddressService } from './cart-billing-address.service';
import { DaffMagentoCartCustomerShippingAddressService } from './cart-shipping-address.service';
import { DaffMagentoCartCustomerService } from './cart.service';
import { DaffMagentoCartCustomerPaymentService } from './payment.service';
@NgModule({
imports: [
CommonModule,
],
})
export class DaffCartCustomerMagentoDriverModule {
static forRoot(): ModuleWithProviders<DaffCartCustomerMagentoDriverModule> {
return {
ngModule: DaffCartCustomerMagentoDriverModule,
providers: [
provideDaffCartDriver(DaffMagentoCartCustomerService),
provideDaffCartAddressDriver(DaffMagentoCartCustomerAddressService),
provideDaffCartBillingAddressDriver(DaffMagentoCartCustomerBillingAddressService),
provideDaffCartShippingAddressDriver(DaffMagentoCartCustomerShippingAddressService),
provideDaffCartPaymentDriver(DaffMagentoCartCustomerPaymentService),
],
};
}
}