import { InjectionToken, inject } from '@angular/core';
import { PermissionGateway } from './permission-gateway.interface';
import { PermissionApiGateway } from './permission-api.gateway';

/** Swap point for docs/backend/TRACK-S-SECURITY-RBAC-CONTRACT.md §2-3. */
export const PERMISSION_GATEWAY = new InjectionToken<PermissionGateway>('PERMISSION_GATEWAY', {
  providedIn: 'root',
  factory: () => inject(PermissionApiGateway),
});
