2024-06-03 02:52:19 +02:00
|
|
|
import {
|
|
|
|
OrganizationAuthRequestService,
|
|
|
|
OrganizationAuthRequestApiService,
|
|
|
|
} from "@bitwarden/bit-common/admin-console/auth-requests";
|
2024-05-15 16:09:24 +02:00
|
|
|
import { ServiceContainer as OssServiceContainer } from "@bitwarden/cli/service-container";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates services and makes them available for dependency injection.
|
|
|
|
* Any Bitwarden-licensed services should be registered here.
|
|
|
|
*/
|
2024-06-03 02:52:19 +02:00
|
|
|
export class ServiceContainer extends OssServiceContainer {
|
|
|
|
organizationAuthRequestApiService: OrganizationAuthRequestApiService;
|
|
|
|
organizationAuthRequestService: OrganizationAuthRequestService;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
this.organizationAuthRequestApiService = new OrganizationAuthRequestApiService(this.apiService);
|
|
|
|
this.organizationAuthRequestService = new OrganizationAuthRequestService(
|
|
|
|
this.organizationAuthRequestApiService,
|
|
|
|
this.cryptoService,
|
|
|
|
this.organizationUserService,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|