import { CommonModule } from '@angular/common' ; import { NgModule , ModuleWithProviders , } from '@angular/core' ; import { DAFF_MAGENTO_CACHEABLE_OPERATIONS } from '@daffodil/driver/magento' ; import { DaffExternalRouterDriver } from '@daffodil/external-router/driver' ; import { DAFF_MAGENTO_RESOLVE_URL_QUERY_NAME } from './graphql/queries/resolve-url-v2.4.1' ; import { DaffExternalRouterMagentoDriver } from './magento.service' ; /**
 * The module used to configure the  DaffExternalRouterDriver for usage with Magento.
 *
 * ```ts
 *  NgModule @ NgModule ( { declarations : [ ] , imports : [ CommonModule ] , } ) export class DaffExternalRouterDriverMagentoModule { /**
     * Configures the package for the root injector.
     */ static forRoot ( ) { return { ngModule : DaffExternalRouterDriverMagentoModule , providers : [ { provide : DaffExternalRouterDriver , useExisting : DaffExternalRouterMagentoDriver , } , { provide : DAFF_MAGENTO_CACHEABLE_OPERATIONS , useValue : DAFF_MAGENTO_RESOLVE_URL_QUERY_NAME , multi : true , } , ] , } ; } }