import { RateFetchingService } from "./services/rateFetchingService.js";
import { ExchangeRateService } from "./services/exchangeRateService.js";
import { NBPProvider } from "./services/providers/nbp.js";
import { RaiffeisenPolandProvider } from "./services/providers/raiffeisen.js";
function register(container) {
  container.register({
    rateFetchingService: {
      resolve: (c) => {
        const em = c.resolve("em");
        const service = new RateFetchingService(em);
        service.registerProvider(new NBPProvider());
        service.registerProvider(new RaiffeisenPolandProvider());
        return service;
      }
    },
    exchangeRateService: {
      resolve: (c) => {
        const em = c.resolve("em");
        const rateFetchingService = c.resolve("rateFetchingService");
        return new ExchangeRateService(em, rateFetchingService);
      }
    }
  });
}
export {
  register
};
//# sourceMappingURL=di.js.map
