Files
cal.diy/packages/features/di/bookings/containers/InstantBookingCreateService.container.ts
T
Benny Joo 96468c4083 refactor: move @calcom/lib/di folder to @calcom/features (#24199)
* mv di folder

* update imports

* fix

* fix

* fix test
2025-10-02 08:12:06 -03:00

15 lines
555 B
TypeScript

import { DI_TOKENS } from "@calcom/features/di/tokens";
import { createContainer } from "../../di";
import {
type InstantBookingCreateService,
instantBookingCreateServiceModule,
} from "../modules/InstantBookingCreateService.module";
const container = createContainer();
container.load(DI_TOKENS.INSTANT_BOOKING_CREATE_SERVICE_MODULE, instantBookingCreateServiceModule);
export function getInstantBookingCreateService(): InstantBookingCreateService {
return container.get<InstantBookingCreateService>(DI_TOKENS.INSTANT_BOOKING_CREATE_SERVICE);
}