import { InjectionToken, inject } from '@angular/core';
import { ServerCartGateway } from './server-cart-gateway.interface';
import { ServerCartApiGateway } from './server-cart-api.gateway';

/** Swap point for docs/backend/PHASE-6-CART-CHECKOUT-CONTRACT.md §3, §5. */
export const SERVER_CART_GATEWAY = new InjectionToken<ServerCartGateway>('SERVER_CART_GATEWAY', {
  providedIn: 'root',
  factory: () => inject(ServerCartApiGateway),
});
