import { InjectionToken, inject } from '@angular/core';
import { AnalyticsGateway } from './analytics-gateway.interface';
import { AnalyticsApiGateway } from './analytics-api.gateway';

/** Swap point for docs/backend/TRACK-A-ANALYTICS-CONTRACT.md §1. */
export const ANALYTICS_GATEWAY = new InjectionToken<AnalyticsGateway>('ANALYTICS_GATEWAY', {
  providedIn: 'root',
  factory: () => inject(AnalyticsApiGateway),
});
