10 lines
514 B
TypeScript
10 lines
514 B
TypeScript
|
|
import { InjectionToken, inject } from '@angular/core';
|
||
|
|
import { AdminNotificationsGateway } from './admin-notifications-gateway.interface';
|
||
|
|
import { AdminNotificationsLocalGateway } from './admin-notifications-local.gateway';
|
||
|
|
|
||
|
|
/** Swap point for docs/backend/PHASE-2-ORDERS-NOTIFICATIONS-CONTRACT.md §6. */
|
||
|
|
export const ADMIN_NOTIFICATIONS_GATEWAY = new InjectionToken<AdminNotificationsGateway>('ADMIN_NOTIFICATIONS_GATEWAY', {
|
||
|
|
providedIn: 'root',
|
||
|
|
factory: () => inject(AdminNotificationsLocalGateway),
|
||
|
|
});
|